Envmap command serve any purpose at all?

Discuss programming topics for the various GPL'd game engine sources.
Post Reply
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Envmap command serve any purpose at all?

Post by Baker »

Does the envmap command in Quake serve any relevant purpose at all (today)? (I'm guessing no)

For that matter, does timefresh? (I'm guessing yes)
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: Envmap command serve any purpose at all?

Post by Spike »

timerefresh can be used for benchmarking. it skips over all the irrelevent client/server/etc code and measures just your cards *SwapBuffers call. :P
Its important to know where the time is spent so you can target optimisations more effectively.
But it is a C coder's command. I'm not sure a mapper would care.

envmap can be useful. Specifically, it can be useful for generating cubemap images. Yay skyboxes...
But more practically, if you ever support certain renderer effects like cubemap reflections or rtlights, the envmap command is the only real way to generate such cubemaps.
Obviously, this only applies if you actually support rendering various such cubemaps. For every other engine is a bit useless.
Its a mapper command in those cases.
mh
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Re: Envmap command serve any purpose at all?

Post by mh »

Render-to-cubemap would be better.

I'm fairly certain that envmap as shipped in the released code is quite broken.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
Post Reply