Minecraft Clone

Previous topic - Next topic

Schranz0r

Only way to "marge" objects is to read the vertices of each cube in a chunk and redraw it as "chunkobject" but the texture are now the problem..?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Slydog

If they share the same texture, then no problem.
Just use the 'X_GETFACE' command, and it includes the texture coordinates.
But, if the models use two different textures, you could merge both textures into one sprite, offsetting one of them.  Then using 'X_GETFACE', apply that offset to the texture coordinates.

But, it may be way more simpler to just remember the vertice data for each model in separate arrays, then combining the two vertice data arrays, then recreate a new model (using 'X_OBJADDVERTEX').  That's how I'm doing it for a 3D multi-level maze game I'm working on, created randomly, and just adding on the new block one at a time.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Schranz0r

To read the vertices and then use "X_OBJADDVERTEX" is what im saying with:

Quote from: myself ;)read the vertices of each cube in a chunk and redraw it as "chunkobject"
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kitty Hello

uhm. You have an array of cubes - just rebuild a cube-chunk.

Hatonastick

#19
I was curious as I've never heard of this game so I looked it up.  Very... Um... Different isn't it? :)  I love the look of it.  Been watching a lot of the vids.  Seems to be a clever sandbox world -- reminds me a bit of a clever Rogue-like, something like Dwarf Fortress, but in 3D combined with a Lego set.  Quite impressive in many ways.

My favourite video of something made in Minecraft so far (except maybe the bit right near the end :)):

Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

matchy

Yes, I've read this was compared to Dwarf Fortress, which is another popular game I need to try out.

In an effort to replicate the world, my first app, I had all the blocks as objects but we now know that will slow down in world distance. I've started a second version which relies on the "CHUNK" (segment) theory I guess. That is a 3D tiled objects of 16x16x16 cubed area with only the sided that are on the outside created. This object segment is again tiled in the world. When a block of the segment is removed, the segment is object is recreated. Any more, it is too slow to recreate. Looks good so far and I am able to achieve great distances with smooth fps (not iPad tested yet for v2).

Schranz0r

I can't create chunks... I'm to stupid for that! :)
Has anyone create a world now, with chunks?  ::)
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matchy

Check out this new video and notice the background distance "chunk" update!


Schranz0r

#23
anyone got the trick?
I realy realy want to know how it works... i'm maybe to stupid, but here we have some good brains in this Forum :D
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard


Hatonastick

You can have my brain if you like but I doubt it will help much as it is old and shriveled -- hang on while I go get a hacksaw and a jar.

Seriously though please keep at it.  I'd love to see something like this done with GLB.
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).