xing xiaoxiong
unread,Dec 28, 2011, 12:57:15 AM12/28/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to G3D Users
I am using G3D 9.0 beta 3 version and started with the
tinyStarter.sln.
I added the following line
Texture::Ref skyBox;
in the definition of class App.
then in the function App::onInit(), I added
skyBox->fromFile("media/env_*.jpg", ImageFormat::AUTO(),
Texture::DIM_CUBE_MAP, Texture::Settings::cubeMap());
then in App::onGraphics3D(...), I added
Draw::skyBox(rd, skyBox);
After running the program, an error occurred, saying
"Assertion Failure - tinyStart.exe
Dereferenced a NULL ReferenceCountedPointer
Expression: m_pointer != NULL
g:\g3d9b3\include\g3d\referencecount.h:365"
How to solve this problem?