eWallRim::Bound
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
Hi,z-man wrote:Light rays cast from the cycle in all directions that stop when they hit a wall. I transformed them into a headlight:
In the third screenshot, the grid pattern on the floor has an extra, lighter pattern toward the player armagetron. Have I gone that long that the grid is no longer the same?
-ph
Canis meus id comedit.
i think "deer in the headlights" just got a whole new meaning.... thats some cool effects you guys have, so when are you going to add lightning and some old guy walking around in a rainsuit with a hook for a hand?.. seriusly though thats some nice eye candy
edit- philip didn't you know we use octagons now?
edit- philip didn't you know we use octagons now?
Last edited by Your_mom on Wed Mar 16, 2005 8:54 pm, edited 2 times in total.
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
http://ww.ogre3d.org find outn54 wrote:slightly OT about eyecandy & the ogre discussion:
how about luminosity in/on textures? does anyone know if ogre opens up that possibility?


-
- Random Identifier & Project Developer
- Posts: 345
- Joined: Wed Feb 25, 2004 12:54 am
- Location: Northern California, USA
How about a rotating search light on top of your cycle?
This is probably FPS dependent so adjust the amount added to dSpin to change how fast it circles. Not that this has any practicle use.


Code: Select all
#define SENSORS 32
#define ROTATIONCONSTANT (2*M_PI/SENSORS)/4.0
#define LINEALPHA 0.125
double size = gArena::SizeMultiplier()*500*sqrt(2);
GLfloat vertices[SENSORS][4];
static REAL dSpin = 0.0;
for(int i=0; i<SENSORS; i++) {
int d = i - SENSORS/2;
REAL angle = .15*d*ROTATIONCONSTANT + dSpin;
double s = sin(angle);
double c = cos(angle);
gSensor sensor(this,pos,dir.Turn(c,s));
sensor.detect(size);
vertices[i][0]=sensor.before_hit.x;
vertices[i][1]=sensor.before_hit.y;
vertices[i][2]=pos.x;
vertices[i][3]=pos.y;
}
dSpin+=0.01;
if(dSpin >= 6.25) dSpin=0.0;
// sr_ResetRenderState();
glPushMatrix();
glLoadIdentity();
glTranslatef(0, 0, 0.8); // raise to the top of the cycle
(the rest is the same as z-man's post)
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
- philippeqc
- Long Poster - Project Developer - Sage
- Posts: 1526
- Joined: Mon Jul 12, 2004 8:55 am
- Location: Stockholm
- Contact:
Heh, so where is the cycle rendering code, exactly? 

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden
Thank you Jonathan. 
Any particular reason none of this went into cvs? I'm asking because I'd like to commit it, it's all disabled right now in my local copy, but I'd like to commit it and add the config items for it so I can learn more about the current config system.

Any particular reason none of this went into cvs? I'm asking because I'd like to commit it, it's all disabled right now in my local copy, but I'd like to commit it and add the config items for it so I can learn more about the current config system.

Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN
Be the devil's own, Lucifer's my name.
- Iron Maiden
Be the devil's own, Lucifer's my name.
- Iron Maiden