Sega Saturn Development > General Jo Engine Help

Fixed Light Source?

<< < (2/2)

XL2:
Yes, I recommand you use CLUT on every texture, it allows you to switch between gouraud and vdp2 effects easily.
On flat shaded quads you can easily use light effects. Look at the Akira3 SGL demo for a really nice effect (RB demo also looks great with realtime gouraud).

ponut64:
Well, while you're here, I do want to ask: What memory are meshes stored in?
Jo engine has a memory used function, it reports I'm using 0% with 2% fragments. I would think that's dynamic memory (not work RAM).

If I can do animation with minimal effort, its having a unique mesh for every frame of animation.
I'm worried about rapidly overflowing memory if it was the case where this meshes .h file is 48 KB, if that really does consume 48 KB of RAM, that is not very many frames of animation that can be done. I can think of ways around that (like only doing a difference between each frame rather than an entire new mesh with redundant data, or reading from CD) but... I needn't worry you about that when I have such a simple question.

I did look over jo engine C and H files trying to find a memory address there, but I could only find references in VDP1 and VDP2 ram or the extended RAM cart.

XL2:
You could separate your mesh in different meshes, each mesh acting as a limb/bone. Then it's just a matter of pushing/poping matrixes to animate the meshes.
Another option you be to have 1 mesh, but store multiple vertices  (si you do something like myPDATA->pntbl = &point_array1).
The main issue with that is that each verticle takes 12 bytes, so you can imagine that it would take a huge amount of memory, but still less than having full meshes.

ponut64:
That's a very good tip about only needing to change the vertices location, since I won't be adding any faces or edges. That brings 1 second of half-rate animation (where I really want the advantages of bones on a manifold mesh and such on a rig in Blender) down from 720 KB to a maximum of 36 KB, which is definitely manageable. Thanks again. I don't need to worry so much about how much memory it takes in that case.

XL2:
Hope this helps you too :
http://forum.jo-engine.org/index.php?topic=871.0

Navigation

[0] Message Index

[*] Previous page

Sitemap 1 2 3 4 5 6 7 8 9 10 
Go to full version