Jump to content

What am I missing here - guiOffscreenCanvas port?


LoLJester

Recommended Posts

I'm trying to map GUIs onto meshes. I came upon this resource: https://forums.torque3d.org/viewtopic.php?f=26&t=1276

Anyone familiar with the guiOffscreenCanvas code?

I successfully ported the guiOffscreenCanvas.h and guiOffscreenCanvas.cpp files to Torque3D 1.2

What other files are affected by this class? How does the guiOffscreenCanvas get mapped onto a mesh and where is the code that does that?

The original resource http://www.garagegames.com/community/resource/view/10899 does the mapping in void ProcessedMaterial::_setStageData(){...}; but, that doesn't seem to be the case with guiOffscreenCanvas in the most recent T3D code.


Anyone's help would be much appreciated.

Link to comment
Share on other sites

i know i needed help to get it to work with the new version of torque but with help from az and othgmars i got it working, if the code builds okay chances are there is a naming convention missed in the model files and datablocks can you post the model datablock you are trying to display the gui on?

Link to comment
Share on other sites

Hi, marauder2k9. It's a TSStatic shape, so it has no datablock. Azaezel, OTHG_Mars, and MangoFusion have also helped me to get it to work except the part where the rendered gui on texture disappears when I resize the window.

I'm doing some debugging right now. I've been in contact with those guys Discord.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...