|
|
|
Help!
by VoroneTZ. 10/14/25 05:04
|
|
|
|
|
|
2 registered members (Grant, joenxxx),
9,921
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
different renderer?
#94012
10/12/06 04:08
10/12/06 04:08
|
Joined: Oct 2005
Posts: 4,771 Bay City, MI
lostclimate
OP
Expert
|
OP
Expert
Joined: Oct 2005
Posts: 4,771
Bay City, MI
|
well i posted this in the third-party tools, but in hindsight i should have posted it here, since it isnt necessarily 3rd party related, ok i figured id ask you guys youselves since matt told me he didn't think so i figured id make sure. Is there a way to disable 16 rendreing, and do the rendering through the use of a different engine, my question is because i prefer irrlichts rendering system, bloodline said he'd done it with ogre, but the a6 renderer still had shown through, so if there is a way to turn of a6 rendering, how do you go about doing it?
|
|
|
Re: different renderer?
[Re: lostclimate]
#94017
10/12/06 08:53
10/12/06 08:53
|
Joined: Jan 2006
Posts: 1,829 Neustadt, Germany
TWO

Serious User
|

Serious User
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
|
Oh, so we just can go this way? I tought about writing a function like (just exemple):
DLLFUNC var A6R_ent_create(xyz) { ent_create(xyz); Entity* Ent = A6Render::getSingleton().getSceneMgr()->createEntity( "oli", "ogrehead.mesh" ); A6Render::getSingleton().getSceneMgr()->getRootSceneNode()->attachObject( Ent ); }
and then check in a linked list if position has changed, etc. I know, would not be the best solution, but ogre is really a great pice of code.
I tried that way, setting ogre´s rendering window not to auto create it´s window, but to use a6 rendering device. Didn´t work.
p.s I´m writing on a little allready running engine when I´m bored, so my skills may be not the problem; And I´ve taken a look on working with dx one year ago.
|
|
|
Re: different renderer?
[Re: lostclimate]
#94021
10/12/06 14:19
10/12/06 14:19
|
Joined: Jan 2006
Posts: 1,829 Neustadt, Germany
TWO

Serious User
|

Serious User
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
|
Sry, it´s me again; I sat up a simple test. But the render don´t get called: Code:
DLLFUNC int ERender_Eentity() { error("Hello Urmel!");
// Get all data ENTITY* pEntity = (ENTITY*)ev->me; BMAP* pSkin = (BMAP*)ev->render_map[0]; LPD3DXMESH pMesh = (LPD3DXMESH)ev->render_mesh; D3DMATERIAL9* pMaterial = (D3DMATERIAL9*)ev->render_d3dmaterial; LPD3DXEFFECT pEffect = (LPD3DXEFFECT)ev->render_d3dxeffect; IDirect3DDevice9* pd3dDevice = (IDirect3DDevice9*)ev->pd3ddev;
// Render (just a test, don´t know if it does sth) if( SUCCEEDED( pd3dDevice->BeginScene() ) ) (...)
return 1; }
DLLFUNC void ERender_Init() { ev->mat_model->event = (EVENT)ERender_Eentity; ev->mat_model->flags |= ENABLE_RENDER; }
dllfunction ERender_Init();
But the 'Hello Urmel' don´t apears; I tried Xerxes way, render_entities=ERender_Eentity;, but didn´t work either (got Urmel, but the ents didn´t disappear). Blub´s damaged?
|
|
|
|