Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 29th Jan 2012 08:52
Okay, so I have two questions... and the first is, how do I paint on a custom terrain - aka, a set of planes, each with 32X32 segments?

Not looking to paint a color... although I grasp that you scale the object size by uv data then back to image pixels. I've sort of done that right here:

But I am looking for some understanding on what is wrong with the code I posted, how I would use other images... and how I would allow the first texture to be scaled over all the planes (like on plane's texture is scaled 4X more than the images scale - how do I paint on it... and paint a texture? Would I have to have a different picture for each plane? Is there another way of doing this. I am not able to purchase plugins under this economic disaster of a country and my income - but I am more than willing to understand and to learn a work around - if anyone has any ideas, please tell me.

Daryn

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 31st Jan 2012 09:27
Bump

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 31st Jan 2012 12:03
Italy or Greece? LOL sorry just watched new ep of Top Gear and find that Italy kinda had it coming...

Umm and please wait at least a few days to bump this board is kinda quiet anyway so why bump?

Did you get the Dark Game Studio Bonanza? It has a video that might help you somewhat...

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 31st Jan 2012 13:53
Not sure exactly what your after, but this demo might help, it lets you paint on an advanced terrain with the mouse, using PICK OBJECT and the advanced terrain colour map.

Health, Ammo, and bacon and eggs!
Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 2nd Feb 2012 05:00
Can I ask why a few days doesn't translate to two days? Im sorry but this post was three pages back at least... bumping to top after being unanswered is forum rights! no offense.

I am trying (not using advanced terrain) to take one image and paint it on an object... which has a default image on it... kind of like painting the terrain. Any thoughts or ideas on the matter?

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Feb 2012 08:20
Still wondering why everyone still uses 20 thread views per page...

But like Van B said look at PICK OBJECT... I will be experimenting with it soon too...

Daryn Alsup
18
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 2nd Feb 2012 08:41 Edited at: 2nd Feb 2012 09:28
Okay. Not gonna argue with you, so lets just drop the whole thread bump even though I waited more then 48 hours and spent those days browsing for answers.

Here is what I thought my code was doing.

Make an image
Enter image into memblock
Make an object
apply image after altering by:
Gather UV Data via Vertexdata and scale to the image width and height
Scale the Pick vectors (X and Z) to match the image width and height
Report the pixel being edited
Change the color (eventually paint a texture)
Unlock the vertexdata
Make the image from memblock
Delete the memblock.

It is exactly the same as the above, minus the advanced terrain.

Is the error in the pick command usage I have posted in the code above, or is it relative to the uv usage in vertexdata. Did I make a mathematical error? I don't know. I look at it, I run it - it works but it doesn't... So confused...

Oh...


Turns out I had parenthesis in the wrong spot in the equation. But, this doesn't solve my problem. I need to figure out how to make the location of the pixel static with the object - so that a uv loop isn't used like the one I currently am.

EDIT2: Again... an edit... much smoother.


Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Feb 2012 11:43
I'm pretty sure the examples for Sparky's Collision plug in have an example which does something similar to what u are trying to do I think.

Login to post a reply

Server time is: 2026-07-11 02:55:34
Your offset time is: 2026-07-11 02:55:34