Game Development Community

Drawing Cylinders Problem

by PrvtHudson · in Torque Game Engine · 09/26/2006 (9:48 am) · 6 replies

Hi,

I am having a hard time "drawing" a cylinder. I have tried a .dts and a .dif.

I drop a .dts or .dif in my game. The problem is that the cylinder isn't drawn properly. Portions of it are not rendered, depending on where you view it from. Here is a pic of my .dts. I have to spin it along the z-axis to actually see the other side.

any direction would be appreciated.



www.randygast.com/pics/dtsCylinder.gif


TGE 1.4
Maya 7.01
3D World Studio

#1
09/26/2006 (9:55 am)
It looks almost as if you have the null texture on both ends. Unfortunately, you can't "cheat" this way for a hollow pipe. =(
#2
09/26/2006 (10:02 am)
Thanx Eric. Nope, this a .dts cylinder with no ends and one texture.
#3
09/26/2006 (10:07 am)
So you are drawing only front facing faces.
is there a way to draw both faces with that exporter?

I am sure there is.

for a cool looking cylinder you will need 2 anyhow.
polies have no thickness so one inside one outside then cap between the two walls.

so the inside one polies face in outside polies face out.
no more problem.
#4
09/26/2006 (10:34 am)
Thanx Badguy, works perfectly.


www.randygast.com/pics/dtsCylinderOK.gif
#5
09/26/2006 (10:38 am)
Cool stuff, looks groovy.

hehe looks kinda like I textured those caps too :)
#6
09/26/2006 (11:55 am)
Thanx badguy. Too much fun. And what self-respecting FPS wouldn't have man-eating, water turbines.


www.randygast.com/pics/dtsCylinderOK2.gif