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
  #501  
Old 2010-02-12, 19:44
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
you can simply contribute to the project by telling me if this small shadow demo works for you !
I uses GLSL, the cream of opengl
Should works for windows and wine
Attached Files
File Type: zip shadow mapping.zip‎ (75.3 KB, 270 views)
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #502  
Old 2010-02-12, 20:07
Kobold's Avatar
Kobold Kobold is offline
Magic Ball Master
 
Join Date: Jun 2006
Location: Germany
Posts: 7,235
Quote:
Originally Posted by david38 View Post
you can simply contribute to the project by telling me if this small shadow demo works for you !
I uses GLSL, the cream of opengl
Should works for windows and wine
The shadows themselves work perfectly for me. But the sides of the cubes get a little bit of a garbled effect when they turn black and white due to the shadow's rotation.
Reply With Quote
  #503  
Old 2010-02-13, 02:45
GoofyLife GoofyLife is offline
Magic Level: Red Ball
 
Join Date: Nov 2006
Location: Norway
Posts: 158
The shadows are not quite right when they run along the cubes, but all ok on the ground.
Attached Thumbnails
Click image for larger version

Name:	shadow.jpg‎
Views:	257
Size:	88.0 KB
ID:	8304  
Reply With Quote
  #504  
Old 2010-02-13, 04:16
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
looks to me like the shadow needs to be a notch further from the cube polygons. On that screenshot it looks like the cube polygons and the shadow are fighting for visibility.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #505  
Old 2010-02-15, 17:34
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
This annoying effect is called z fighting and I still didn't find a way to remove it. Actually, you can only reduce it by playing with a lot of parameters like ambient lighting, polygon offset, front and rear culling etc ...
This demo is here to see if most of you will be able to launch the next LSA versions.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #506  
Old 2010-02-24, 20:38
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Here is another demo !
This one shows my last work on shadows, lighting, and texturing.
Tell me if it works for you !
Attached Thumbnails
Click image for larger version

Name:	snapshot.jpg‎
Views:	249
Size:	50.2 KB
ID:	8311  
Attached Files
File Type: zip shadow mapping 3.zip‎ (440.2 KB, 204 views)
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #507  
Old 2010-02-25, 00:20
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
It seems to work fine...aside from the shadeing of the the cube face that face's the camera seems to "snap" to black as the light moves rather then fadeing into it. Is that intentional? I mean, it fades part of the way, and then turns black suddenly, and then repeats over.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #508  
Old 2010-02-25, 03:12
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Yeah, same here. Works perfectly, except for that jerking movement at one point.

Also, we're doing normal maps now?
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #509  
Old 2010-02-25, 14:16
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
normal (bump) mapping doesn't work on my new computer ! It just shows one position, and lighting + shadow works well.
I have no idea why there is this brutal change of light intensity on cube face, I'm making an investigation.
Well the important thing is that shadows are working right ? Other stuff are for fun, but I won't use it at all for LSA, as it use a different form of lighting and doesn't need normal mapping.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #510  
Old 2010-02-25, 14:22
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
shadows themselves seem fine!
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #511  
Old 2010-02-26, 17:22
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
Here is a screenshot of the last demo I made. I corrected all the bug and bump mapping is much more appreciable.
Take a look on my web page, in the "other project" session to download it !

__________________
Little Script Adventure[thread][download]
Reply With Quote
  #512  
Old 2010-02-26, 17:53
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
works fine.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #513  
Old 2010-03-03, 11:24
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
I have updated LSA web page, specially the characters and objects part. Is there something missing ?
I don't have all the blender files of rabibunnies female
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #514  
Old 2010-03-04, 02:42
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
After so many hours, so many pains ... here is the LSAV5, same than V4 but with shadows. I give you binaries for now, as this version is not optimized. It works slowly on my brand new computer so don't expect high FPS. Shadows are highly detailed on this version. Maybe too much !
note : link is temporal, I'll put correct link on my web page next time I actualize it. right now you can download it here
Attached Thumbnails
Click image for larger version

Name:	LSAV5.jpg‎
Views:	210
Size:	189.5 KB
ID:	8313  
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #515  
Old 2010-03-04, 03:55
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I'll check it out in the morning. And send you any missing models too.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #516  
Old 2010-03-04, 12:18
Bot13's Avatar
Bot13 Bot13 is offline
Look beyond reality.
 
Join Date: Aug 2004
Location: Fortress Island.
Posts: 2,621
It crashes here, on a Win XP (sp3).
__________________
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
  #517  
Old 2010-03-04, 12:26
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
maybe your graphic card doesn't have all the extensions to compute shadows
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #518  
Old 2010-03-04, 13:05
Bot13's Avatar
Bot13 Bot13 is offline
Look beyond reality.
 
Join Date: Aug 2004
Location: Fortress Island.
Posts: 2,621
Quite possibly, I'm not behind my own pc. That one can probably handle it.
If I remember correctly this one has a Nvidia Geforce 6100.
__________________
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
  #519  
Old 2010-03-04, 13:54
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
i ran it in Wine under Ubuntu, and it works perfectly. As far as I'm concerned you can even raise the shadow resolution if you want.

It is evident though that som parts of the level need flat shading badly (I mean the flat ground surfaces and buildings and all of that. Cause you can see the polygons with gouraud and it looks kinda awfull - we'd need to add more polygons to compensate for that...

EDIT:
I'm not sure I like all the specular reflections on the characters and the level (it looks really great on all metal objects though). And my comments on gouraud shadows (or any other then the new system in fact... in fact, is it still needed if you have such advanced shadows?) on characters are still there .

EDIT2:
It's really amazing that all the opaque stuff (like the leaves and other such elemens) also throws shadows, and onto the characters!!!really amazing!
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure

Last edited by Jasiek; 2010-03-04 at 15:13.
Reply With Quote
  #520  
Old 2010-03-04, 14:37
Kobold's Avatar
Kobold Kobold is offline
Magic Ball Master
 
Join Date: Jun 2006
Location: Germany
Posts: 7,235
It's really looking better and better. I agree with Jasiek about the reflections on the characters, but overall the shadows look nice.
Reply With Quote
  #521  
Old 2010-03-04, 15:16
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
Imo the gouraud shading should be replaced with self-shadowing (Twinsens shadow is not cast on twinsen) in the new technique. And flat shading on the architecture. With smooth aka gouraud but without an other form of light then ambient on the charactes and non smooth surfaces (like grass and the rocks). I'm not sure why there still has to be the gouraud when there's realistic shadows...

There's something that makes me despise the gouraud in any other form then providing smooth transitions between polygons.

I like a pastel look though, so I may be in the minority here.

/WHINE
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure

Last edited by Jasiek; 2010-03-04 at 15:21.
Reply With Quote
  #522  
Old 2010-03-04, 15:38
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
there should be selfshadow on characters, are you sure there is not ? If not it's because there is a bug, I cannot really check that in detail at work Try to look if arms generate shadows on trunk.
Here is how I compute shadows :
I render map offscreen in a huge FBO (frame buffer object) only once, in the light point of view. It's FBO1.
Then at every frame I copy depth component of FBO1 to a FBO2. I then add dynamic objects, here the characters. You can see FBO2 at upper right corner.
Depth component of FBO2 is then copied to a depth texture, which is used to compute shadows. This technic is called shadow mapping but it is optimized as static objects (the map) is precalculated.
After that the whole scene is rendered in camera point of view, the depth compare with depth texture is done in a GLSL program. It means that the normal GPU pipeline is modified. This way only one pass (two for dynamic objects) is needed to render everything
I do not use gouraud shading here, but phong shading. It makes objects look like plastic, specially on twinsen and grobo head ! I'll see if I can reduce this effect.
__________________
Little Script Adventure[thread][download]
Reply With Quote
  #523  
Old 2010-03-04, 15:46
Bot13's Avatar
Bot13 Bot13 is offline
Look beyond reality.
 
Join Date: Aug 2004
Location: Fortress Island.
Posts: 2,621
Correct me if I'm wrong, but afaik the Phong material uses gaurad shading as a form of per-pixel-lighting, just like bump mapping and specular mapping (for instance).
//edit: Correcting myself; it's an improved version of gaurad shading which instead of using gradients on polygons calculates it per-pixel, fixing a problem with specular going on over at large polygons.

Anyway, agreeing with Jan here. For everything not specifically needing to appear smooth, gaurad shading is unnecessary and inappropriate.
The specular intensity is pretty high, especially the characters, but I take it you haven't applied any form of specular mapping yet, so that should be a work-in-progress.

Great work on the opacity maps having effect on the shadow mapping! Seen that go wrong numerous times.
__________________
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
  #524  
Old 2010-03-04, 15:53
Jasiek's Avatar
Jasiek Jasiek is offline
Do the evolution.
 
Join Date: Jul 2003
Location: You forgot Poland.
Posts: 7,723
I'm pretty sure there's no self shadowing. Twinsen's and the Grobo's arms' shadows don't show up on their respective bodies (but the grobo and everything else will cast shadows on Twinsen and vice versa). Simply puy the characters don't cast a shadow on themselves.

Is there a way to increase the resolution of the shadows btw? I mean, from the two glsl files, can I fiddle with that myself? Just asking - I like fiddling with that stuff.


EDIT:
Scratch that, it's working fine. It's really hard to notice the it though.
__________________
Little Script Adventure
Join the Little Script Adventure team
Download Little Script Adventure
Reply With Quote
  #525  
Old 2010-03-04, 16:00
David's Avatar
David David is offline
Magic Ball Master
 
Join Date: Dec 2008
Location: Barcelona
Posts: 1,683
you can't ! It's hard coded !! Depth map is double width and double height of the render window, because I consider if you render in a small window, it's because you have slow hardware, so shadow resolution adapts itself ! Try to run demo in fullscreen with maximum resolution to have the best shadows
__________________
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 15:03.


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