Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 11:34 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Set up the light.
PostPosted: Fri Nov 28, 2008 8:23 am 
Offline

Joined: Sat Nov 22, 2008 6:33 am
Posts: 68
How to set up the light so there would be no dark side on each object? (It called ambient light am I right?)
Image


Top
 Profile  
 
 Post subject: Re: Set up the light.
PostPosted: Thu Jan 01, 2009 9:49 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
For some reason (useless ? :), the ambient term is not managed by Raydium.

You can probably talk directly to OpenGL with something like (untested):
Code:
GLuint GLl;
GLl=raydium_light_to_GL_light(my_raydium_light);
glLightfv(light,GL_AMBIENT, color_4_bytes_array);


... Or we may add ambient term to Raydium (one or two tiny functions, a new global array, and it's done). Why not.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 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