Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Alex

Pages: [1] 2 3 ... 21
General / Re: Feedback, Requests, & Suggestions
« on: February 21, 2018, 03:48:52 PM »
Does it help any to turn on the Ruler in the settings?
I think it might be difficult to see stuff if the grid is visible everywhere- but it might be something that could be incorporated into the Ruler.

In Development / Re: Space Explorer
« on: February 16, 2018, 03:35:48 PM »
Yeah, I know exactly what you mean with the textures helping reveal new details- There is a lot that can be done with simple shapes/tiles that can build up to larger more complex forms simply by rearranging things in ways you didn't originally plan for. It's exciting to see all the possibilities come alive when that happens.
Thanks! yes, I'm still doing various things, and post my adventures/struggles on patreon :)
Good to know you are still enjoying and finding good use of Crocotile

In Development / Re: Space Explorer
« on: February 15, 2018, 06:44:17 AM »
Nice screenshot! :)
Yes, I find the process fun too- something about seeing depth get added to a texture is really interesting.

Support / Re: Loading OBJ into ThreeJS
« on: February 04, 2018, 04:16:23 PM »
no problem!
I suspect the source code in threejs that reads the mtl/obj files might be a bit selective in the way the data needs to be formatted- it might not take into account all the possible ways a mtl/obj file can be formatted.

Support / Re: Loading OBJ into ThreeJS
« on: February 02, 2018, 10:25:19 PM »
I messed with the code..
It seems like it isn't setting the material variables correctly.. Or it isn't setting the texture variables in the material correctly?
I'm not sure.. but you can set the texture directly, and it will show up..
Code: [Select]
function createOBJ(name, x = 0, setMaterials = true) {
    const objPath = "/obj/" + name + "/";
    const mtlLoader = new THREE.MTLLoader();
    mtlLoader.load(name + '.mtl', function (materials) {
        const objLoader = new THREE.OBJLoader();
        if (setMaterials) objLoader.setMaterials(materials);
        objLoader.load(name + '.obj', function (object) {
            object.position.x = x;

var texture = new THREE.TextureLoader().load( objPath+'texture_1.png' );
texture.magFilter = THREE.NearestFilter;
//texture.minFilter = THREE.LinearMipMapLinearFilter;
var material = new THREE.MeshBasicMaterial( { map: texture } );
object.children[0].material = material;


Support / Re: Loading OBJ into ThreeJS
« on: February 02, 2018, 04:03:15 PM »
If you provide me the files, I can try to work out a solution for you.
You can pm me them if you want to keep them private or you can attach them to a post in this thread.
It'd help to have the crocotile file, textures , obj, mtl, (also obj/mtl of a working model) and some source code for loading into threejs.
I can't promise that I'll figure something out, but I can give it a shot!

Support / Re: Loading OBJ into ThreeJS
« on: February 02, 2018, 06:16:29 AM »
Thanks :)
I haven't tried loading an mtl into three.js before, so I'm not familiar with the process. Have you tried it with an obj/mtl that wasn't exported from Crocotile, to see if the issue may be related to the exported file or your code?

General / Re: Thanks
« on: January 08, 2018, 03:46:50 PM »
You're welcome!
Feel free to share your work anytime. It's always a treat to see what others make with it.

General / Re: Trouble
« on: January 08, 2018, 02:47:45 AM »
The stretching is due to the way the tile's UVs are mapped to the texture. You can adjust the UVs of a tile by selecting a vertex of a tile and using the arrow keys to reposition the UV coordinate.
You can also right click the purple UVs (the corners) in the tileset window when a tile's face is selected in Edit mode.
The vertices not aligning are probably due to the grid rounding- It looks like you have it set to 1 in your screenshot. The grid rounding controls how the tile snaps to the 3d space and how the 3d cursor moves.
Also while in Edit mode, you can also click and drag a single vertex in the 3d viewport while holding Shift and it will snap to the nearest vertex while you drag it.

General / Re: Where can i find.
« on: January 08, 2018, 02:36:44 AM »
You can add new tilesets/images and work with them
I attached image showing the tileset button for adding new tileset/image, and also buttons for cycling through your tilesets.

General / Re: Where can i find.
« on: January 07, 2018, 01:56:49 AM »
Here is the tileset. I've attached it to this post.

In case you didn't know, the default tileset should load when you run crocotile3d, and you can export the tileset from within the program.

Support / Re: Settings issue
« on: December 28, 2017, 03:52:38 PM »
no problem! glad to have helped :)

Support / Re: Settings issue
« on: December 28, 2017, 02:56:02 PM »
The default tile size setting is 16x16, and the default image size is 256x256.
Did you resize the default image or something?

Support / Re: Cannot launch Crocotile 3D (Linux)
« on: October 21, 2017, 03:37:26 AM »
wow, really? I'm not sure how I overlooked something like that. Maybe when I transitioned to the newer nw.js version I somehow overlooked those files for linux.
Thanks for discovering that!

Support / Re: Cannot launch Crocotile 3D (Linux)
« on: October 20, 2017, 02:51:33 PM »
Thanks, that might be due to a temporary fix I implemented in 1.2.9 designed to remove a file at the start of the application.
I'm also thinking the other issue might be related to the .desktop file that linux uses to run the program.

Pages: [1] 2 3 ... 21