• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

3D RPG engine demo

Started by bitblt, April 14, 2006, 12:16:41 AM

Previous topic - Next topic

Payk

hehe watch in the folder /extern/ there is a mpb file called map....
if you open that u will find pixels which are ordered like:

L    L   L
GO GO
HU  HU
L   L   L

L=Light
G=Ground
O=Object
H=Height
U=Unused (for now)

Thats why more layers over eachother isnt possible. It just was made for hills and stairs...and if u have a better idea of such a map telll me. Because i use that idea since years and it grows and grows...
Now i brought it to nds hehe...
Now to the trees.. they are build with 4 Quadz. If u look in the script u will see that u are able to load them like:
ObjectA TreeA tree1.bmp 0 255 0
Whats that?
ObjectA=D ore the slots for objects (i can make more later)
TreeA is one of the plabed thre meshes...so yes there will be others to
then comes the texture-filename
and then the rgbcolor (24bit) for finding out in the bitmaps what green means or blue...So in That system is no place for to ground layers also that would bring us same result like iso view because 2X that grounds means about 10-20 frames per second less...Lighteffects for example made the framerate become 3-5 less (fps)..crazy i am wondering to...but rendering triangles seems to be more difficult for nds then calculating colors OR the nds has a own chip lights...dont know i am not that hardware guy i just wanted to say: More groundlayers : No more trees hehe sure u will seee much different methods for that. But engine is mostly finished there will nothing big more i mean: Light,Shadows and Mirroweffects. How many rpg have them too? Yes and seiken dentsu is great without them! So some improvements i can do: Lets say if char goes behind a wall it gets glass like to see him...Or u could say damn why not clouds and rain...or the houses need that holes where smoke comes out..That all would me cost no polygones or maybe 10...And all what u just have read will be build in for sure...

Payk

But bridges i think, i could add to fake more layers...hhmhmm i got an idea..would work without much ressources ...ok but later because next thing will be doors in order to get in houses...after that keys (and with that an item system) is next thing to add....

bitblt

Quote from: "Payk"Now to the trees.. they are build with 4 Quadz. If u look in the script u will see that u are able to load them like:
ObjectA TreeA tree1.bmp 0 255 0
No, I'm not talking about that kind of tree :) . . .

BSP tree = Binary Space Partition tree
http://www.faqs.org/faqs/graphics/bsptree-faq/
http://en.wikipedia.org/wiki/BSP_tree

Quadtree =
http://www.gamedev.net/reference/articles/article1485.asp
http://en.wikipedia.org/wiki/Quadtree

The technique you are currently using is known as height mapping.

(using code mode for ascii art)

For hidden (off screen) surface removal I think you are doing something like this?

PLAYER POSITION = *
RENDERED OBJECTS = #
HIDDEN (off screen) OBJECTS = .

....................
....................
....................
......#######.......
......#######.......
......###*###.......
......#######.......
......#######.......
....................
....................
....................

For isometric perspective try this . . .

....................
.........#..........
........###.........
.......#####........
......#######.......
.....####*####......
......#######.......
.......#####........
........###.........
.........#..........
....................

Payk

Ahhhhh ok understand..

Payk


hey BitBlt what do u say now?

bitblt

Yay an update!  :D  The pictures look great.  I definitely want to check it out more when I get home this evening.  Is there a new download link?

bitblt

For those following this project, Payk has informed me that his 3D RPG game engine will be entered into a contest, so he's not going to release another public demo for awhile (unless you are a beta tester  :) ). Payk might release more screen shots.  Good luck with the contest Payk!

Payk

Hey thanx.
And yes screens of a nice new lightsystem will follow soon.
Playable will it be on 20th aug.
See yaa and stay tuned.

biebboek

Awww, a pity that we couldn't expect demo's soon.
It whas very nice!
Succes anyway!
orry for my bad English.

Payk

Hey...little question...light should come from top or bottom?

Thanx

bitblt


Payk

k Thanx...but if a Fire is on the Bottom the right one or both mixed?
So it would be stronger iluminated from bottom but still top too...
What do u think?

bitblt

Bottom.  :)

I don't know . . . they both look interesting.  Maybe it depends if your inside a building, or outside in the open?

Payk

Yep that would be best i think. For the fireplaces outside it should come from bottom, and inside it should iluminate from top...

Payk

Another screenshot...but animated...its some days old..Trees look better now...