Game Development Community

Why is'nt my object rendering?

by Johnathan Moore · in Torque Game Engine Advanced · 01/28/2007 (10:01 am) · 3 replies

Hey, Im having problems getting my custom object class to render (its based on the RTSUnit from the RTS Kit).

Does anyone have any suggestions why It wouldnt?


A Few Things:

The shape works as a player object

The object is being networked

Its parent class is player

Render Image Function is not called

Milestone 4.1

Please post if you need to know anything else.

#1
01/29/2007 (2:17 am)
The most common reason I get invisible items is forgetting the material definition, or the material file(s) not being executed. Also for some reason I seem to need the "map to" param set in the material def.
#2
01/29/2007 (12:45 pm)
No its not a material problem because it works in the player class using the exact same shapefile

i have the function

void			Unit::renderObject(SceneState* state)
{
	Con::errorf("blaa");
	//ShapeBase::renderImage(state);
	
}

but it does not get called
#3
01/30/2007 (11:14 am)
Maybe its missing this parameter so its not being called?
RenderInst * ri)

i think that should be it but i cant try it :(
i get my new laptop on thursday so ill have to set up visual studio again...