Go Back   the Magicball Network > Forums > LBA Projects > Little Script Adventure

Welcome to the Magicball Network.

You are currently viewing our site as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Little Script Adventure An open-source 3D engine with assets and tools for all future LBA fan-games.

Reply
 
Thread Tools
  #2576  
Old 2011-09-22, 10:47
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
I've tried the shader Horadrim talked about for sky procedural (here)
It's possible to add it, no problem. Sun position from this shader can be linked to the one used in viewer,.
The same shader handles skybox background, it's not working on the binary (didn't even find the textures...). I then made it work, but it needs orientation correction. The idea is to use it for stars/moon, gradually showing it when comes the night. Sky color + moving clouds are generated by shaders. I also tried adding skybox directly in viewer, it almost worked, still have problems of orientation.

So if you know how to create a skybox perfect ! Maybe MAX has a feature for that ?
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #2577  
Old 2011-09-22, 11:25
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
The skybox is just an enormous box with inverted normals. Nothing fancy about it. The binaries for the skies didn`t work for me either, until I made the same directory hierarchy and placed textures with the same, missing names. The four examples differ by function, so I could say that the most useful among them are the sky1 and sky3. The first one has very nice sun effect and the third uses two layers of clouds.
BTW, why using skybox, especially when it should move? Wouldn`t it be more easier if we use sky dome?
Reply With Quote
  #2578  
Old 2011-09-22, 12:02
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
yeah I think we should use a mix of 1 and 3, and adding the night skybox.
If you draw a small skybox, you immedialtely see it's fake sky while you walk on the map, stars are getting smaller or closer. If you draw a huge skybox, it will get out of camera clip planes. So the idea is not drawing geometry, but taking the direction you look and compute which pixel is shown. In fact you render one big quad, size of the screen, the rest is shader work.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #2579  
Old 2011-09-22, 12:43
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
This could be useful:

http://ogldev.tvcdev.net/www/tutorial25/tutorial25.html

Seems simple enough and I think that you could use sphere, instead of a box.
Reply With Quote
  #2580  
Old 2011-09-22, 14:29
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
That's the technique I used yesterday

So is it possible to get this cube texture ?
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #2581  
Old 2011-09-22, 15:31
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Wait a sec, I got little confused here. I thought you`re going to use the procedurals for the sky and the clouds. What texture do you need exactly?
Reply With Quote
  #2582  
Old 2011-09-22, 17:40
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Texture is needed for everything not procedural, thus, I would say stars and emerald moon. This "constellation" could even rotate to have moonrise and moonset along the time. This skybox would be the background. On top of it you would have a second layer all procedural, controlling atmosphere color, clouds, and sun. Combining the 2 layers is the key to my mind.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #2583  
Old 2011-09-22, 20:43
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Okay then, I`ll make a cube texture. BTW, shall I include the moon in the texture itself, or you could use the 3D model? I think it`ll be more nicer if we have a model, instead of texture/sprite.
Reply With Quote
  #2584  
Old 2011-09-22, 21:09
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Yeah I'm all for the model too. It will look way cooler.

Could you model in craters and such? Or add a normal map - so the details stick out a bit?

Btw. I'm back home and don't have my computer here, can we add lights now? I'd like to place some lights in the scene at night when I get my hands on my computer again.

Also how are we with placing cameras?
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #2585  
Old 2011-09-22, 23:15
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Well, it has a normal map already and it should look like this. I think that there`s some kind of a problem with the combination between glowing texture and a normal map. I used glow texture, since the moon should emit some light, but thus it looks like the normal map somehow is not there. Even if I add more craters, I don`t think that they`ll be visible from this distance.
Attached Thumbnails
Click image for larger version

Name:	emoon.jpg‎
Views:	99
Size:	32.7 KB
ID:	8835  
Reply With Quote
  #2586  
Old 2011-09-22, 23:34
GoofyLife GoofyLife is offline
Magic Level: Red Ball
 
Join Date: Nov 2006
Location: Norway
Posts: 158
I'm excited!! =D
Reply With Quote
  #2587  
Old 2011-09-23, 10:30
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Moon looks very nice but cant be used for sky it has to be inside the cube mapno doubt about it. Maybe the model could be used for a planetarium in astronaum house. Normal mapping wont work since glow and sglow has only emissive light no diffuse or specular
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #2588  
Old 2011-09-23, 10:44
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Okay then, I`ll include it into the stars texture.
Reply With Quote
  #2589  
Old 2011-09-23, 15:44
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I'm guessing bake normals into the texture then? Would be nice I think if the surface was a bit more cracked.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #2590  
Old 2011-09-23, 19:20
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Just committed the textures into the test directory. David, I guess you should rotate the textures a bit if they don`t match (I mean flipping them vertically or horizontally).
Jas, here`s how the moon looks like (this is the front texture of the skybox)
Attached Thumbnails
Click image for larger version

Name:	moon.jpg‎
Views:	97
Size:	114.3 KB
ID:	8836  

Last edited by Horadrim; 2011-09-23 at 20:11.
Reply With Quote
  #2591  
Old 2011-09-23, 22:34
ambient's Avatar
ambient ambient is offline
Magic Level: Red Ball
 
Join Date: Jun 2010
Location: Russia
Posts: 141
Moon looks unnatural. It's better to render it right onto the skybox texture, with correct lighting, etc.
Reply With Quote
  #2592  
Old 2011-09-23, 23:46
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Hmm, I think it would only need to have more defined edges, sharp crater edges overall.

Sort of like this:


I really like the colour though, and think that if some of the bigger craters are sharper it will look amazing. Could also use a bit of a green haze - there's an atmosphere between us and it after all.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #2593  
Old 2011-09-24, 10:12
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
@ambient: Unfortunately, I can`t render the skybox texture with the moon on it from Mudbox. I painted the stars and the nebulae in Photoshop and made the moon in Mudbox. Even if I try to render it through other means, I`m sure that many of the details in the sky texture will be lost (especially in the stars).
Jas, I`ll see what I can do with the craters, but I don`t quite understand the part with the haze. What do you mean by it?
Reply With Quote
  #2594  
Old 2011-09-24, 11:42
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I mean a very faint halo around it.

http://www.flickr.com/photos/hamilto...1350/lightbox/
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #2595  
Old 2011-09-24, 12:45
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Aaah, I see now, you`re right. Didn`t thought about it.

EDIT: How is it now?
Attached Thumbnails
Click image for larger version

Name:	front.jpg‎
Views:	105
Size:	112.8 KB
ID:	8837  

Last edited by Horadrim; 2011-09-24 at 15:08.
Reply With Quote
  #2596  
Old 2011-09-24, 18:26
Bot13's Avatar
Bot13 Bot13 is offline
Look beyond reality.
 
Join Date: Aug 2004
Location: Fortress Island.
Posts: 2,621
Loads better! Looking great
__________________
Quote:
Originally Posted by ChaosFish View Post
Did you know? Over 30 million people lurk the MBN every day. We who actually post here are like celebrities to them.
Reply With Quote
  #2597  
Old 2011-09-24, 18:40
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Cant wait to try it ! Looks awesome !is that on repo ?
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #2598  
Old 2011-09-24, 19:09
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Yep, everything is in the repo, waiting to be tested out. :P

EDIT: I guess, this is how it could look like with the skybox:
Attached Thumbnails
Click image for larger version

Name:	wip.jpg‎
Views:	117
Size:	109.9 KB
ID:	8838  

Last edited by Horadrim; 2011-09-25 at 13:27.
Reply With Quote
  #2599  
Old 2011-09-26, 14:32
Horadrim's Avatar
Horadrim Horadrim is offline
Free-lance designer
 
Join Date: May 2004
Location: Bulgaria
Posts: 1,355
Send a message via ICQ to Horadrim
Hey, David, happy birthday!
Reply With Quote
  #2600  
Old 2011-09-26, 16:00
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Thanks !!
I'll probably get the skybox working tomorrow
__________________
Little Script Adventure[thread][download]
Reply With Quote
Reply

Tags
awesome, demo, engine, lba, lba1r, little bigger adventure, little script adventure, non profit, opengl, opensource, tools

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link on mbn main page Vral The site and forum 19 2005-11-04 05:17
main page Neko LBA DM 3 2001-04-29 22:12
Why does no one visit the main site? CS2x The site and forum 42 2001-02-01 18:24


All times are GMT +2. The time now is 08:03.


News Feed
Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2021, the Magicball Network