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
1
Support / Re: REQUEST: Tile picker tool
« on: April 12, 2018, 04:45:36 AM »
This is already implemented:
Copying a tile's UVs to the brush (alt+rightclick in 3d scene in draw mode)

2
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.

3
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

4
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.

5
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.

6
Support / Re: Loading OBJ into ThreeJS
« on: February 02, 2018, 10:25:19 PM »
ok..
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.setPath(objPath);
    mtlLoader.load(name + '.mtl', function (materials) {
       
        materials.preload();
        const objLoader = new THREE.OBJLoader();
        if (setMaterials) objLoader.setMaterials(materials);
        objLoader.setPath(objPath);
        objLoader.load(name + '.obj', function (object) {
            object.position.x = x;
            scene.add(object);

//ADDED THIS STUFF
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;
console.log(object);

        });
    });
}


7
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!

8
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?

9
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.

10
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.

11
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.

12
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.

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

14
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?

15
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!

Pages: [1] 2 3 ... 21