ol-bones / Three.js-Game-Engine

Three.js Game Engine
22 stars 2 forks source link

Texture splatting!!! #33

Open Thundros opened 4 years ago

Thundros commented 4 years ago

Hi @ol-bones ! First off I'd like to say : GOOD JOB! I LOVE this! PLEASE keep up the GREAT work! <3 Second, I'd like to ask if you can add Texture Splatting to Terrain & ability to export Terrain WITH Texture Splatting Quality applied to the model?

Once again, PLEASE keep up the GREAT work & I look forward to beta testing this! <3

Thundros commented 4 years ago

@ol-bones : Hello?

ol-bones commented 4 years ago

I'm working on this atm, glad you like it haha

Thundros commented 4 years ago

Hey @ol-bones : How goes the Texture splatting / saving? <3

ol-bones commented 4 years ago

Like this? grass/mud

https://i.imgur.com/tYCUc1E.png

Thundros commented 4 years ago

@ol-bones : <3

Thundros commented 4 years ago

Something like this :

https://www.blog.radiator.debacle.us/2013/09/hacking-blend-transition-masks-into.html

This is an example splatmap I have drawn in Paint.net :

https://i.imgur.com/Jjn3oVd.png

ol-bones commented 4 years ago

https://files.catbox.moe/q29nho.webm

Thundros commented 4 years ago

@ol-bones : O my! You are TOO good! :O Can you make it so that you can use any size texture other than 0? HOLY! Keep up the AWESOME work! <3

ol-bones commented 4 years ago

Can you make it so that you can use any size texture other than 0?

wdym?

painted terrain


                "Size": 1000,
                "Divisions": 25,
                "material": {
                    "type": "TerrainMapMaterial",
                    "texture": "/grass2.jpg",
                    "texture2": "/dirt.jpg",
                    "color": "0xFFFFFF",
                    "repeat": [
                        9,
                        9
                    ],

texture1 and 2 can be anything any size

arpu commented 4 years ago

what is the maximal different Textures 4 ?

ol-bones commented 4 years ago

2 with simple mix() shader

Thundros commented 4 years ago

@ol-bones : O_O THAT'S AMAZING! <3 Is there a way to save the terrain with the new quality textures already applied to terrain?

ol-bones commented 4 years ago

@Thundros Yeah make a new entity like PaintedTerrain but with the new textures and call it something else, I haven't added an option in the menus to change the textures on terrains

I'm also not going to work on this anymore probably. Mostly because I've found cannonjs isn't really efficient enough for a lot of physics objects. It's probably ok to use this to make a game without physics like Divinity Original Sin but FPS needs to be smooth.

Feel free to use the code or reference it in your own stuff

Thundros commented 4 years ago

@ol-bones : Do NOT give up! Use ammo.js

ol-bones commented 4 years ago

Yep! Ammo.js is probably better, I don't have time for this anymore though haha.

Thundros commented 4 years ago

@ol-bones : :(

ol-bones commented 4 years ago

@Thundros life :(

Thundros commented 4 years ago

@ol-bones : Is there somebody you can give the source to who CAN actively work on it? I don't wan to see this project fail.

Thundros commented 4 years ago

@ol-bones : Why not start a kickstarter?

ol-bones commented 4 years ago

@Thundros Nope, feel free to add to it yourself though, or post on www.reddit.com/r/threejs or www.reddit.com/r/gamedev - maybe someone there would contribute

Also the average kickstarter funds raised is $5k to $23k - so not a very viable option

Glad you like it so much though haha

Thundros commented 4 years ago

@ol-bones : What about GoFundMe?

ol-bones commented 4 years ago

@Thundros Make it for me, if it gets £500K I'll finish it and make a sick game

Thundros commented 4 years ago

@ol-bones : Make what?

ol-bones commented 4 years ago

a gofundme page

Thundros commented 4 years ago

You don't know how to create one?

ol-bones commented 4 years ago

well yeah but it's your idea and you're passionate about it so it's probably better for you to do it