Hard to describe..
Bah.. I mistyped my password so the whole 3 paragraph thing got deleted... *re-types the whole thing*..
OK, in the old days, adventure games ruled, they had hand-drawn backgrounds, and players. The players would walk around in a map like this:
Of course the players could walk infront or behind of the trees and such, so the game engine used a second bitmap to determine when to draw the map -- before or after the actor is drawn. The engine would take a bitmap like this:
And determine which should be drawn first based on the Y position of the character (they might have used an emaginary Z.. but in KQ3< it is pretty aparent they dont ^_^).
The problem is, that was then. Back then 160x200 (double-x pixels) was the resolution the engine worked in. In my current engine, it is running in 800x600, and uses OpenGL 3D textured polygons with alphatransprency layers, rotation, and scaling.. Obviously pixel-by-pixel rendering is NOT a good idea.
My idea was to 'cut out' the portions of the scene that the actors can be drawn infront or behind (like trees, fences, etc), and draw them off after-the-fact -- before or after the actor has been drawn, depending off its emaginary Z value.
So far it seems to work great (although cutting out the scene chunks take a decent ammount of time).
I wanted to know if there are faster ways to do this (faster game-wise, not prep-wise). I know the FF7-9 games, along with a lot of other PSX games used pre-rendered backgrounds and 3D characters, so its nothing new I'm sure; but I highly doubt they did what I am doing.
Does anyone know of any other techniques to have pre-drawn backgrounds and 2D characters walking around in an OpenGL 3d based environment (ortho mode is off of course ^_^).
Thanks
- Dreq
[edited by - dreq on March 11, 2004 10:32:39 PM]
"Mommy, where do microprocessors come from?"
Why did you turn Ortho mode off? Ortho is exactly what you need! If you really don''t want to use ortho mode tho, you could create "layers" on the screen. Basicly, you create the sections nearest the camera as layer 1, then create a layer2, which is right behind layer 1 and so forth. When your character walked thru the world, have him change layers. Of couse, you could just use a Z-Buffer and draw everything haphazardly.
--------------------------------------------------------------------------------[C++ Reference | Java API | SDL Home Page | Lua Scripting Language | Python Scripting Language | Chris Taylor's Design Document (Downloadabe MS-Word Only) | Blitz Basic Homepage ]
I ment on.. I tried to modify my post 3 times and it still didn''t change.. both times i ment on.. "It draws the cut out pieces back ON" and "(Yes i have ortho mode turned ON)".. Sorry about that
"Mommy, where do microprocessors come from?"
I belive the solution to your problem would be to use z-buffer filtering. It a standard graphics techinque so you shuld be able find plenty of material on it.
-----------------------------------------------------
Writer, Programer, Cook, I''m a Jack of all Trades
Current Design project
Chaos Factor Design Document
-----------------------------------------------------
Writer, Programer, Cook, I''m a Jack of all Trades
Current Design project
Chaos Factor Design Document
Writing Blog: The Aspiring Writer
Novels:
Legacy - Black Prince Saga Book One - By Alexander Ballard (Free this week)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement