Jump to content

  • Log In with Google      Sign In   
  • Create Account

zgysx

Member Since 02 Apr 2012
Offline Last Active May 30 2013 06:46 PM

Posts I've Made

In Topic: Gamebryo: Program crash when render NiMeshScreenElements

11 July 2012 - 07:41 PM

I solve this bug, because I created NiMeshScreenElements before create NiRender. so the NiMeshScreenElements::m_eColorFormat was F_FLOAT32_4.
I created a NiRender, and then create NiMeshScreenElements, NiMeshScreenElements::m_eColorFormat become F_NORMUINT8_4_BGRA, this is a correct value. Everything is ok.
I am so ashamed.
Thanks Hodgman all the same.

In Topic: Gamebryo: Program crash when render NiMeshScreenElements

11 July 2012 - 07:20 PM

Gamebryo is a closed-source proprietary engine, so you'd be much better off asking for help inside that closed community. You might even get your company in trouble (i.e. have their license revoked) by discussing the internals of that product on a public forum... Does your company have a support contract for Gamebryo?

Look inside the NiD3DShader::PreRenderSubmesh to see what kind of cast it's attempting to do, and which object it's trying to do the cast on.

Of course, our company have the license, but Gamebryo source code have not opened for me at present, I need a complicated application if I want to watch the Gamebryo source code. I just a new employee.

In Topic: how to force global variable which define in a static library to initialize?

04 April 2012 - 08:07 PM

One of my "favorite" issues that caused a lot of pain.
.....
But I guess the easiest solution is to simply not rely on any side effects of global static variable initialization.

I approve your opinion, now I find the most suitable way is that include *.h file of static library in executable project explicitly.
Thank you Trienco for your offer of examples.Posted Image

In Topic: how to force global variable which define in a static library to initialize?

03 April 2012 - 11:26 PM

Yes, actually. we can initialize the global object defined in *.h file of static project through include *.h file in executable project.
But..... Can we link some *.h file of static library into executable project through link option? not through reference the object or function.
Can we work that out by link option? I am using Visual C++ 2008.
cheers.

In Topic: code sample for rendering a game character like avatar

03 April 2012 - 07:59 PM

There is a number of samples which you want in DirectX SDK.

PARTNERS