BackupGGCode / quake-gamecube

A port of id Software's Quake to Nintendo Wii and GameCube.
10 stars 2 forks source link

Model's prematurly stop rendering when they reach the edge of the screen. #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Kill a monster.
2. Slowly turn away from the corpse.
3. Watch the corpse model stop rendering prematurely.

What is the expected output? What do you see instead?
The model to be rendered.

What version of the product are you using? On what operating system?
0.0.1 Beta

Please provide any additional information below.
It appears that the frustrum view calculations that test if a model is in
the camera's view, and to detect if a model is to be rendered or not is
prematurely stopping the rendering of models when the model reaches the
corner of the view. It's most notable with larger models like the shambler.

Original issue reported on code.google.com by ciaran.g...@gmail.com on 23 Jun 2008 at 5:58

GoogleCodeExporter commented 9 years ago
This is a known issue and will be worked on. Look at line 1621 of 
src/wii/gx/gx_model.c, function Mod_LoadAliasModel. It says:

// FIXME: do this right
mod->mins[0] = mod->mins[1] = mod->mins[2] = -16;
mod->maxs[0] = mod->maxs[1] = mod->maxs[2] = 16;

Original comment by elua...@gmail.com on 24 Jun 2008 at 3:51

GoogleCodeExporter commented 9 years ago
I've got a quick fix, simply calculating the distance from each vertex, to the
origin, and whatever has the maximum distance is used.

I've attached my modified gx_model.c

The SVN version I downloaded doesn't seem to have hardware acceleration, though 
the
bug seems fixed with software rendering.

If the SVN isn't the latest could someone point me in the right direction to 
get it,
I'd like to do some hacking on the net code, and some other things.

Original comment by ciaran.g...@gmail.com on 25 Jun 2008 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, I'm stupid, I just saw the alternative GX makefile.

Now I can actually test this.

Original comment by ciaran.g...@gmail.com on 25 Jun 2008 at 12:25

GoogleCodeExporter commented 9 years ago
Properly fixed.

Original comment by elua...@gmail.com on 9 Aug 2008 at 12:47