Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Tue Apr 16, 2024 11:11 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Draw object on ...
PostPosted: Thu Oct 02, 2008 8:35 am 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
I have included simple function to raydium:

Code:
...
void raydium_object_rotate_and_draw_at(GLuint o,GLfloat ax,GLfloat ay, GLfloat az,GLfloat x,GLfloat y, GLfloat z)
{
    glTranslatef(x,y,z);
    glRotatef(ax,1,0,0);
    glRotatef(ay,0,1,0);
    glRotatef(az,0,0,1);

    raydium_object_draw(o);
}

...


but work only when rendering shadow is enabled, object is self rotated and translated, where is problem? What has common shadow with draw object, when is used only GL function to translate.

Note: This is very usefull for create editor.

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
 Post subject: Re: Draw object on ...
PostPosted: Sat Oct 04, 2008 7:49 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Maybe shadow is leaving the world rotated...
Go to check.


Top
 Profile  
 
 Post subject: Re: Draw object on ...
PostPosted: Sun Oct 05, 2008 1:40 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
I don't fully understand your problem, but what I can say is that shadows works on top of RayODE, as documentation states it. If you use direct GL rotations/translations, you're not supposed to deal with shadow.c.


Top
 Profile  
 
 Post subject: Re: Draw object on ...
PostPosted: Sun Oct 05, 2008 1:44 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
ok

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group