RenderBSPNode to ?? in tgea?
by Mike Rowley · in Torque Game Engine Advanced · 03/25/2009 (7:45 pm) · 0 replies
I'm trying to figure out how to convert RenderBSPNode from tge 1.5.* to tgea 1.8.*
RenderBSPNode in tge is used to construct the BSP tree for sorting translucent images. The closest thing I can find in tgea is
Here is the function in tge:
The other thing that bothers me with this new code is that in the tge version, it is calling the texture on 2 different nodes. pNode and jNode. The tgea version doesn't have any of that code, so I tried adding them, but that didn't work at all. (got an undeclaired identifier error)
Does anyone have any idea how I can fix this error so I can remove around 100 error messages and move on? (vc just loves to spam the error messages)
Thanks in advance for any help.
RenderBSPNode in tge is used to construct the BSP tree for sorting translucent images. The closest thing I can find in tgea is
/// Builds the BSP tree of translucent images. void buildTranslucentBSP();which I believe to be the same thing, but can't figure out how to use it.
Here is the function in tge:
inline void Forest::recursiveAddTree(SceneState::RenderBSPNode* pNode, ForestItem *fi)I tried:
inline void Forest::recursiveAddTree(SceneState::buildTranslucentBSP(), ForestItem *fi)but get an error:
c:\Torque\TGEA_1_8_1\forestEngine\engine\source\forest/forest.h(277) : error C2061: syntax error : identifier 'buildTranslucentBSP' c:\Torque\TGEA_1_8_1\forestEngine\engine\source\forest/forest.h(277) : error C2059: syntax error : ')' c:\Torque\TGEA_1_8_1\forestEngine\engine\source\forest/forest.h(277) : error C2143: syntax error : missing ')' before ';'I get this wether I use the () or not.
The other thing that bothers me with this new code is that in the tge version, it is calling the texture on 2 different nodes. pNode and jNode. The tgea version doesn't have any of that code, so I tried adding them, but that didn't work at all. (got an undeclaired identifier error)
Does anyone have any idea how I can fix this error so I can remove around 100 error messages and move on? (vc just loves to spam the error messages)
Thanks in advance for any help.