Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AemStones, AndrewAMD, gamers, Kingware), 1,679 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
3D grid and pixelate texture? #431088
10/09/13 08:36
10/09/13 08:36
Joined: Oct 2013
Posts: 31
JerahYalyn Offline OP
Newbie
JerahYalyn  Offline OP
Newbie

Joined: Oct 2013
Posts: 31
Hi guys. I just started using 3DGS and was easy when I followed some tutorial. Now I'm on a low end game project. It's something a mixture of a voxel type game but I will be using standard shape object and terrain(hightmap). I Just need the 3D grid so when I place an Object in a ground it with snap in to the a valid grid and that way players can build at precisely. And as I said I'm working on a low end game which means I don't need much details for the game. I made my character skin and some of my test object with pixelated skins, Only problem is 3DGS engine seem to automatically smooths my texture. How do I render my textured pixelated?

Sounds like minecraft and yes minecraft concept but I want to have a different gameplay style for it which in I already have in my project list. I'm still working on my modeling skill using med since setting the map for tha skin is kinda difficult for me at the moment.

Thanks!

Re: 3D grid and pixelate texture? [Re: JerahYalyn] #431096
10/09/13 11:08
10/09/13 11:08
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You can just set the entities NOFILTER flag for this purpose.

http://www.conitec.net/beta/aentity-nofilter.htm


Always learn from history, to be sure you make the same mistakes again...
Re: 3D grid and pixelate texture? [Re: Uhrwerk] #431105
10/09/13 13:07
10/09/13 13:07
Joined: Oct 2013
Posts: 31
JerahYalyn Offline OP
Newbie
JerahYalyn  Offline OP
Newbie

Joined: Oct 2013
Posts: 31
That was easy. Thanks! I found an example of grid system in ultimate Acknex Unlimited but only 2D grid. Also checked sir sivan's map builder but will have to go though the whole source code first. Just hope I can understand how each function works. tongue

Re: 3D grid and pixelate texture? [Re: JerahYalyn] #431118
10/09/13 16:14
10/09/13 16:14
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
What is giving you trouble, the code for the grid or its visualization?

The code for a 64 quant sized grid can for instance look as follows:
var grid_id_x = floor(ent_marker.x/64); // You are looking for the grid position of some entity "ent_marker"
var grid_x = grid_id_x*64;

If your grid does not start at the origin you can simply add some kind of offset:
var grid_id_x = floor((ent_marker.x-offset_x)/64);
var grid_x = grid_id_x*64+offset_x;


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: 3D grid and pixelate texture? [Re: Superku] #431149
10/10/13 05:38
10/10/13 05:38
Joined: Oct 2013
Posts: 31
JerahYalyn Offline OP
Newbie
JerahYalyn  Offline OP
Newbie

Joined: Oct 2013
Posts: 31
The code for the grid. it will just be an invisible grid that divides my level into a array of cube. That way it will be easier for for me to seed may map entity and and building player structures will be accurate.

Thank you for the code. I'll try it out and see how goes out for me.

UPDATE:
I just tried the code but I'm using A7.86-Free for a reason and my version doesn't support floor. tried int but it's a snaps in the wrong grid.

Last edited by JerahYalyn; 10/10/13 15:24.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1