PolyVox - general questions

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

PolyVox - general questions

Post by 804 »

1. I create my voxels with this code:

Code: Select all

        //Create the volume that contains the actual voxel data and make it 64x64x64
        SimpleVolume<MaterialDensityPair44> volData(PolyVox::Region(Vector3DInt32(0,0,0), Vector3DInt32(63, 63, 63)));
 
        //This vector hold the position of the center of the volume
        Vector3DFloat v3dVolCenter(volData.getWidth() / 2, volData.getHeight() / 2, volData.getDepth() / 2);
 
    //Our new density value
    uint8_t uDensity = MaterialDensityPair44::getMaxDensity();
              
    //Get the old voxel
    MaterialDensityPair44 voxel = volData.getVoxelAt(10, 10, 10);
    //Modify the density
    voxel.setDensity(uDensity);
 
    //Wrte the voxel value into the volume
    volData.setVoxelAt(10, 10, 10, voxel);
 
scene::CDynamicMeshBuffer *newBuffer = new scene::CDynamicMeshBuffer(video::EVT_STANDARD, video::EIT_32BIT);
IrrSurfaceExtractor<SimpleVolume, MaterialDensityPair44 > irrsurfaceExtractor(&volData, volData.getEnclosingRegion(), newBuffer);
irrsurfaceExtractor.execute();
 
//Create the scene node
scene::SMesh * newMesh = new scene::SMesh;
newMesh->addMeshBuffer(newBuffer);
newMesh->recalculateBoundingBox();
scene::ISceneNode * newNode = smgr->addMeshSceneNode(newMesh); 
newMesh->drop();
newBuffer->drop();
but i don't know how to scale these voxels for a minecraft like terrain.
2. and i don't know how to texture the voxels (blocks of my terrain)
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: PolyVox - general questions

Post by Virror »

You want to change the size of the blocks?
In that case just change the scale of the SceneNode.
For texturing, you probably need to implement a shader that can access the different materials of the voxels and apply a texture depending on the type of material.
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: PolyVox - general questions

Post by 804 »

And Don't know much aboud hlsl and thinks like this. So , isn't there another Way to do it?
Or a tutorial?
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: PolyVox - general questions

Post by 804 »

Please, i Need fast help and here are so Navy minecraftclones, so how didthey so that?
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: PolyVox - general questions

Post by Virror »

Maybe you should mail them and ask?
Not sure how to do the texturing since im not working on a minecraft clone.
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: PolyVox - general questions

Post by 804 »

Do you know someone who is very active in this forum, uses polyvox and makes a minecraft game (i am new and don't know anyone)
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: PolyVox - general questions

Post by serengeor »

804 wrote:Please, i Need fast help and here are so Navy minecraftclones, so how didthey so that?
I think what you need is to google for "unpaid full time programmer team to build a project for me because I'm too lazy to study and investigate things on my own". If you find this offensive, I don't mind..
Working on game: Marrbles (Currently stopped).
Grumpy
Posts: 77
Joined: Wed Dec 30, 2009 7:17 pm
Location: Montana, Usa

Re: PolyVox - general questions

Post by Grumpy »

I googled that and all I got back from google was porn links...

and what in tarnation is minecraft clone ???
code happens
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: PolyVox - general questions

Post by 804 »

A minecraft clone is a clone of the Great game minecraft XD
Any usefull replies?
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: PolyVox - general questions

Post by Radikalizm »

804 wrote:A minecraft clone is a clone of the Great game minecraft XD
Any usefull replies?
I thought serengeor's reply was actually rather useful, you are just way too stubborn to listen to people who know what they're talking about and who try to help you the best they can

Again, like I said to you so many times, if you are already stuck at this point and if you can't manage to do even the most basic things a minecraft clone requires, how the hell are you going to manage when things really get dirty?
Last edited by Radikalizm on Thu Dec 01, 2011 10:56 am, edited 1 time in total.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: PolyVox - general questions

Post by randomMesh »

There's no device->createMineCraftClone(), Irrlicht is only a 3D engine. It just renders some pixels you pass to it. YOU have to make sure (using programming skills) these pixels (visually) make a game.
"Whoops..."
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: PolyVox - general questions

Post by Cube_ »

and were back to the original problem, make something simpler FIRST
"this is not the bottleneck you are looking for"
804
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: PolyVox - general questions

Post by 804 »

Ok, but my Game won't have an infinit terrain.
I also finished the Perlin noise algorigm.
(and my c++-knowledge isn't As Bad As you think)
And i Know how to make movement, collision, create polyvox surfaces and Things like this, so i think it won't Be As hard As is seems.

So at the moment the biggest problem is the texturing and i really Need the help of you experts to handle this.



PS: i made a PONG-game in the last Week and i looks pretty good ;)
Last edited by 804 on Thu Dec 01, 2011 4:02 pm, edited 1 time in total.
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Re: PolyVox - general questions

Post by Radikalizm »

804 wrote:so i think it won't Be As hard As is seems.
Better yet, it's worse than it seems
Virror
Posts: 191
Joined: Mon May 02, 2011 3:15 pm

Re: PolyVox - general questions

Post by Virror »

I don't think you have a option besides using a shader for this type of texturing, so you have to read some tutorials on that. There are plenty of them out there explaining the basics of texturing and other stuff.
This is one of the mayor things im struggling with as well right now, im trying for something i read in the PolyVox forum, something like this: http://irrlicht.sourceforge.net/forum/v ... =1&t=45164
Post Reply