Graviteam

English-speaking community => Steel Fury: Kharkov 1942 => Topic started by: mikhayl on January 02, 2010, 06:07:39 PM



Title: Interior rendering in game?
Post by: mikhayl on January 02, 2010, 06:07:39 PM
Hi, I made some early testing with the Marder III and I have my first big problem:
http://i45.tinypic.com/euh3so.jpg (http://i45.tinypic.com/euh3so.jpg)
(that's the gunner view)

As I understand, when you're in "inside" position, the interior mesh is rendered over the exterior, and when you're in an outside position the exterior is rendered over the interior (logic  :P).
When I'm in external view or in radioman or driver position everything is fine, the problem is that the "inside" position for the gunner and loader are actually "outside" on this model, in the open compartment.

My model is arranged this way, the interior is the highlighted part (just the hull interior), all the rest (including pak40 and fighting compartment) is with the exterior mesh:
http://i47.tinypic.com/1zwcmbm.jpg (http://i47.tinypic.com/1zwcmbm.jpg)

I put the Pak40 and fighting compartment with the outside mesh so that it's visible on the AI units too.

Is there a way to fix my problem without touching the mesh (I don't want to redo the uv-mapping  ;D)?
Or do I have to put the Pak40 as part of the interior mesh also, and use "sync" scripts in the coc_marder.engcfg (and redo the interior uv-map...)?

I hope I explained it right  :)