immoasfen.blogg.se

Coppercube change open loading texture
Coppercube change open loading texture





coppercube change open loading texture
  1. COPPERCUBE CHANGE OPEN LOADING TEXTURE HOW TO
  2. COPPERCUBE CHANGE OPEN LOADING TEXTURE FULL
  3. COPPERCUBE CHANGE OPEN LOADING TEXTURE DOWNLOAD

COPPERCUBE CHANGE OPEN LOADING TEXTURE FULL

Hi yes the full path worked for the first part of the script: Did you try with the full path? Does that work at least? Just tried it out, your script works perfectly for me.

COPPERCUBE CHANGE OPEN LOADING TEXTURE HOW TO

Var s = ccbGetSceneNodeFromName("cubeMesh1") var t = ccbSetSceneNodeMaterialProperty(s, 0, "Texture1", "smallmetalpipe_1-1.jpg") Ĭould you tell me how to fix it so that the texture that is loaded from disk can be applied to a model such as "cubeMesh1" ? Now I need to try and apply the texture to a model. The \ symbol is an escape character, so you need to escape it as well, like this:Ĭ:\\textures\\walls\\smallmetalpipe_1-1.jpg Maybe your path looked something like this? Hm, when using the full path, it should definately work. I also tried to type in the full path to the location of the external texture file but when I did that the same error was shown. Ok, I was able to run the app using -debug command to check the messages but the same error was shown. It could be that the working directory is the one of the editor if run from the editor. Hm, try running the app standalone (= not from the editor), maybe it works then. jpg file and named it: 'smallmetalpipe_1-1.jpg'īut when I ran the test as an exe preview within CC I got the debug error message: Then in the same directory as the b file on my desktop I created a folder named 'textures' then in that another directory called 'walls' then in that I saved a. Example: if (ccbLoadTexture("textures/walls/smallmetalpipe_1-1.jpg")) print("yipee, it worked.") editorUpdateAllWindows() // show changes in texture manager window Loads a texture. Returns true if successful and false if not.

coppercube change open loading texture

I'll start reading the doc again and start memorising those commands and try and figure out how and where to insert them into CC.Ĭan't help thinking that maybe that doc Is written for people that already have a basic to good grasp of programing understanding.įor total beginners like me it's a bit difficult to know where to begin.Ĭreated a coppercube scene, saved it as b on my desktop.Ĭreated a test.js file on my desktop and added this code:ĬcbLoadTexture(filename) Loads a texture into the texture cache.

COPPERCUBE CHANGE OPEN LOADING TEXTURE DOWNLOAD

If someone had a really simple game that uses very simple examples of basic scripting that I could download and dissect to practice with just to get my feet wet I think that could be an easier way for anyone to learn this.Īnyway. But each time I go into those docs I get lost. That's great! I've always said to myself that at some point I'm really going to start learning this script. Works a bit differently on all targets, you need to look into the scripting API. This works on all targets except Android. Yes, I think loading textures is possible.

coppercube change open loading texture coppercube change open loading texture

It can be done in webgl because all objects are external anyway so I can just replace the default texture in the sub directory.īut can this be done using windows exe or flash ? Hello would it be possible to load 3d models and or / textures into a 3d game at runtime? I have a 3d configuration setup app and currently all textures are compiled into the app but if I could allow the users to use there own textures would be nice. Is it possible to load external objects at runtime? Ambiera Forum > CopperCube > Help with CopperCube







Coppercube change open loading texture