Page 1 of 2

3D Skyboxes.

Posted: 28 May 2007, 06:39
by Argh
Nope, not asking how to make one. Just had an idea, though... why not implement a skybox as a S3O? Then you get scaling control, lighting effects, etc. Been thinking it might kick major booty to make a night map with a huge, 3D moon in the back ground, centered where the lightsource is, among other things.

Posted: 28 May 2007, 06:52
by AF
that sorta defeats the point of a skybox, in that the skybox is so far away you couldnt see any perspective effects, you couldnt tell if it was a 3D model or a bitmap.....

Posted: 28 May 2007, 07:05
by LOrDo
I welcome any changes to the skybox. DDS's are so unneccesarily huge in filesize.

Posted: 28 May 2007, 09:37
by Warlord Zsinj
Gnome did this a long time ago. He made a moon that was a 3D object on a map in the background. I don't know whether he ever posted his results though, I'll have a search through the forum.

Posted: 28 May 2007, 09:47
by Ishach
I've never seen a skybox outside of map screenshots and i'd wager 99% of players dont look at them at all either :/

Posted: 28 May 2007, 12:32
by jcnossen
that sorta defeats the point of a skybox, in that the skybox is so far away you couldnt see any perspective effects, you couldnt tell if it was a 3D model or a bitmap.....
He probably means that the model is always centered at (0,0,0) in view space and drawn before everything else.

Posted: 28 May 2007, 13:26
by PicassoCT
Me wants Unreallike Skyboxes were the Players can run around ther Boiz in and show up as Giants ;)

Posted: 28 May 2007, 16:22
by smoth
Argh, this would be nice, but we need shader effects to make out clouds move in the sky box and we have no translucency for s3o which means the clouds would have hard edges. Then best we can do is come up with some bryce prerendered cubemaps. :|


af, he is talking about this:
Image
The sky in the distance is a series of 3d objects rendered on a portal around the level. Btw, this shot is from a game made in 1998's map format so it is old.


argh, if you want some cubemaps that I have done, I can toss them on unknown files and you can use them all you want.

Posted: 28 May 2007, 20:23
by rattle
PS: Shogo rocks!

Posted: 28 May 2007, 20:49
by trepan
S3O? Na, lua with shaders.
Why lock yourself into a limited model format?

- draw an accurate star model into a display list, use os.time() to orient them correctly
- lua has translucency for clouds, and has enough access to allow for some fairly
advanced shader tricks (true 3D clouds and ground fog can be done)
- i haven't added support to generate cubemaps, but you can just draw 6 quads
(although the reflective and specular cubemaps should be accessible in shaders)
- lua has texture matrix control, allows for easy texcoord shifting
- lua can do "true" skyboxes that track the view origin
- lightning, rain, snow, rainbows, whatever
- etc...

Posted: 28 May 2007, 21:29
by PicassoCT
rattle wrote:PS: Shogo rocks!
Curse you Rattle! You reminded me that they at Monolith said they would make Shogo 2 - and i am still waiting - again ...

;)

Praise to Shogo!

Posted: 28 May 2007, 21:49
by smoth
don't get me started. I am an elder member of that dead community.

Posted: 29 May 2007, 04:55
by AF
In the mean time we have the dynamic clouds setting.

Posted: 29 May 2007, 05:12
by smoth
I have requested it before but I will say it again, it would be nice if we could have an option to still render clouds and the sun along with our cubemaps.

Posted: 29 May 2007, 07:59
by Neddie
Ishach wrote:I've never seen a skybox outside of map screenshots and i'd wager 99% of players dont look at them at all either :/
I see them, Isaac. I play with the camera from time to time.

Posted: 30 May 2007, 05:17
by Dragon45
trepan wrote:S3O? Na, lua with shaders.
Why lock yourself into a limited model format?

- draw an accurate star model into a display list, use os.time() to orient them correctly
- lua has translucency for clouds, and has enough access to allow for some fairly
advanced shader tricks (true 3D clouds and ground fog can be done)
- i haven't added support to generate cubemaps, but you can just draw 6 quads
(although the reflective and specular cubemaps should be accessible in shaders)
- lua has texture matrix control, allows for easy texcoord shifting
- lua can do "true" skyboxes that track the view origin
- lightning, rain, snow, rainbows, whatever
- etc...
Wait, realtime sun-motion across sky... day/nmight cycle that potentially changes terrain over time

zomg

tides anyone?

Posted: 30 May 2007, 09:56
by zwzsg
As I was trying to correct the perspective to make my dump moon round on my CPIA & Peripheral Consciousness map, I was under the impression that if it was round when cented on the screen, it became skewed when on the corner of screen. And I came to wonder if a cubic skybox has really no perspective effect that would make it appear as different under certain angle than let's say a spherical skybox. But trying to figure if a sphere can be mapped unto a cube with no visible difference from an observator who can use any angle but has to remain in the center makes my headsplode before I find the answer. Can someone with a better sense of 3D geometry answer me?

Posted: 30 May 2007, 17:19
by smoth
http://spring.clan-sy.com/wiki/Skyboxcreation

I use bryce3d, if you want any of my source files I can upload the raw images for you to look at.

Posted: 31 May 2007, 10:43
by Neddie
Dragon45 wrote:
trepan wrote:S3O? Na, lua with shaders.
Why lock yourself into a limited model format?

- draw an accurate star model into a display list, use os.time() to orient them correctly
- lua has translucency for clouds, and has enough access to allow for some fairly
advanced shader tricks (true 3D clouds and ground fog can be done)
- i haven't added support to generate cubemaps, but you can just draw 6 quads
(although the reflective and specular cubemaps should be accessible in shaders)
- lua has texture matrix control, allows for easy texcoord shifting
- lua can do "true" skyboxes that track the view origin
- lightning, rain, snow, rainbows, whatever
- etc...
Wait, realtime sun-motion across sky... day/nmight cycle that potentially changes terrain over time

zomg

tides anyone?
I see some MTR fulfillment in the future.

weird

Posted: 31 May 2007, 15:53
by rcdraco
I got shogo too, really screwy game, I didn't like it. :!: