Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Question about time, spheres, skies ...

Author
Message
Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 15th Mar 2011 03:36 Edited at: 15th Mar 2011 03:37
I assembled a tech demo so I can see for myself on how DarkBasic Pro is driven. I am quite impressed and its surely not for kids as some people suggested!

Here is a quick demo I made:
http://www.youtube.com/watch?v=yZWVIBpTV3c

Its made with L3DTPro (the jpg terrain map) and the lightmaps.
Having mastered the ground (ok ... no trees and grees but thats easy) I wanna turn my gaze towards the sky.
I have terragen and I build all my skyboxes by hand.
I know the principle beyond it but I dont get how to apply them to dbpro.

My questions are these ...

1) Can I make a cube, texture it in blender and load it in dbpro?
2) How do I render the 6 images I have onto a skysphere?
3) Using eXtends plugin ... can I dynamically light my scene as the sky moves and if yes ... how?
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Mar 2011 14:54
Quote: "1) Can I make a cube, texture it in blender and load it in dbpro?"

Yes.

Quote: "2) How do I render the 6 images I have onto a skysphere?"

If you apply them in blender your exported object should be able to load the images in with it. You could alternatively just use six indipendantly textured planes.

Quote: "3) Using eXtends plugin ... can I dynamically light my scene as the sky moves and if yes ... how?"

Haven't used it much but if you set your sky up for a certain time of day you can play around until you get the lighting right. Why have dynamically changing light for a skybox though?

I am using Evolveds advanced lighting shader at the moment which might be more like what you want, you can use dynamic skies with lighting and visual effects such as motion blur all in one set of shaders. Takes some setting up but it looks great. Or there's DarkCLOUDS which also produces really nice dynamic skies...

The Slayer
Forum Vice President
16
Years of Service
User Offline
Joined: 9th Nov 2009
Playing: (Hide and) Seek and Destroy on my guitar!
Posted: 15th Mar 2011 16:26
If you wanna stick with the skyboxes for now, there's also Skybox Creator which makes a .DBO (native 3D model format for DBPro) out of your six images.
And, as baxslash just mentioned, there's Evolveds Advanced Lighting system which loox really nice, but demands a powerfull PC.
I might release a skybox pack for the community.

Cheers

SLAYER RULES! YEAH, MAN!!
Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 15th Mar 2011 16:32
Quote: "Why have dynamically changing light for a skybox though?"


Well, because as the sun moves around the sky it should light objects based on it's position in the sky ... that's what I was aiming for.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Mar 2011 16:49
Quote: "Well, because as the sun moves around the sky it should light objects based on it's position in the sky ... that's what I was aiming for."

What I mean is - Aren't the images used on skyboxes normally static?

I didn't know there was a way to dynamically change those images unless that's a feature of the extends plugin, maybe I am not understanding you correctly?

Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 15th Mar 2011 18:22 Edited at: 15th Mar 2011 18:33
Quote: "What I mean is - Aren't the images used on skyboxes normally static?

I didn't know there was a way to dynamically change those images unless that's a feature of the extends plugin, maybe I am not understanding you correctly?"


It's called real time sky in the extends plugin. The skybox itself is static but built out of different layers that rotate at different speeds with adjusting as time passes to reflect this. You should check it out, its pretty cool.

So technically speaking, its not static.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Mar 2011 18:39
Quote: "It's called real time sky in the extends plugin. The skybox itself is static but built out of different layers that rotate at different speeds with adjusting as time passes to reflect this. You should check it out, its pretty cool.

So technically speaking, its not static."

Cool, didn't know about that one! I have extends too. Might have to check it out. Sorry for being dumb!

Afraid I can't answer your question, I've only ever done this using DarkCLOUDS which gives you vectors for the light direction... sorry!

Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 15th Mar 2011 18:43
No problem mate ... I'll just use a static map

Its a fantasy realm ... maybe the elves did not invented the concept of "shadow" =))
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Mar 2011 21:59 Edited at: 15th Mar 2011 22:00
Here's an example of Evolved's shaders in action:



Also you could try my skybox/sphere maker but it's not quite finished yet. It has gone open source but you need DarkCLOUDS to compile it...

EnviroSCOPE

Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 16th Mar 2011 05:59 Edited at: 16th Mar 2011 06:45
Would it run on a 2009 MacBook Pro?
Intel Core 2 Duo, 4 gigs ram, NVidia 9600 ...

I tried Skybox creator ... whenever i load an image it tells me it cannot grab image, error at line 704

Any ideeas?

I tried EnviroSCOPE ... it would be nice to actually load my own images that I render myself.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 16th Mar 2011 10:18
Quote: "Would it run on a 2009 MacBook Pro?
Intel Core 2 Duo, 4 gigs ram, NVidia 9600 ..."

Sounds about the same spec as the PC I took that picture on. Also it ran smoothly at around 60fps with the ocean shader, motion blur and bloom running...

Quote: "I tried EnviroSCOPE ... it would be nice to actually load my own images that I render myself."

Not sure I get your point? EnviroSCOPE is used to make the images for a skybox. Do you mean you'd like to load your own skybox so you can use it as a background instead of DarkCLOUDS?

Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 16th Mar 2011 14:57
Quote: "Not sure I get your point? EnviroSCOPE is used to make the images for a skybox. Do you mean you'd like to load your own skybox so you can use it as a background instead of DarkCLOUDS?"


Yep. Although I dont own skybox i think terragen is much more capable.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 16th Mar 2011 15:03
It's not an option at the moment but I like the concept... I'll look at putting it in

Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 16th Mar 2011 16:41
I the mean time I'll just make a cube in blender, invert its normals, texture it and export it as an .x object

Login to post a reply

Server time is: 2026-07-17 13:58:31
Your offset time is: 2026-07-17 13:58:31