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.

AppGameKit Classic Chat / some 3D questions

Author
Message
sovr
14
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 26th Nov 2012 00:40
Hello everyone! I have been working very hard to figure out most of the features within the beta versions of AppGameKit 1.08! There are two things that I am stuck on for the 3D features... 1. is collision and the second one is for textures.

For the collision I am using a terrain that is from a .OBJ file, since there is ray casting I thought I would try to find where the collision point (from my character object to the terrain) was on the terrain. I figured I could use that to find the height point of the terrain. My main goal is to make my character walk along the terrain... but so far I have not been able to do that.

For the texture, I have a few plains that stick up and have grass textures on it. The grass's texture shows black when it should be see through! I went into gimp and saw that there was already alpha applied to the black part of the image. What command would I use to make the black part of the texture invisible? I tried the load image(1,"grass.png",1) with having the third part 1 for enabling alpha to the texture...


In advance thank you for helping me out !!!!!

sov the game creator!
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 28th Nov 2012 10:20
I can't help with the collisions bit I'm afraid (I've not got that far yet, I'm using an array/grid system for collisions in my current projects)

But for the transparency issue, have you tried the SetObjectTransparency( objID, mode ) command?

I did experiment with it, but only trying to make an object "Ghosted" (so you can see through it but still see it), which sadly didn't work the way I intended.

Hope that helps

MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 28th Nov 2012 17:38 Edited at: 28th Nov 2012 17:41
To make your character following the terrain Y, you can do this :

sovr
14
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 29th Nov 2012 04:26
THANK YOU THANK YOU AND THANK YOU MikeMax that helped a lot for my terrain! and I did use the setobjecttransparency(objID,mode) but I will try it again to see if I missed anything.

hello there!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 29th Nov 2012 05:00
In just 2 posts I learned a heck of a lot... Thank you guys!

MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 29th Nov 2012 17:17
you're welcome
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 1st Dec 2012 12:00
Set object transparency dont work as the shaders they currently have built dont support transparency textures or ghosting.

So its simply an shader issue that you can fix by your self.

I noticed this as iam going thru my shaders book and noticed that they have the whole part about transparency and ghosting missing in the shader.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 1st Dec 2012 20:59
@Cliff Mellangard 3DEGS:
That explains my complete and utter lack of success trying to ghost objects. Its a shame that I have absolutely no knowledge about shaders and writing them

Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 1st Dec 2012 22:18
Quote: "That explains my complete and utter lack of success trying to ghost objects. Its a shame that I have absolutely no knowledge about shaders and writing them "

Iam writing about my progress and how to write basic shaders here.
http://forum.thegamecreators.com/?m=forum_view&b=41&t=201508&p=0

But i havent got to the part of ghosting and my progress is slow due to the lack of motivation right now.

But made the part with how to add transparency to your objects.



Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Login to post a reply

Server time is: 2024-11-24 03:23:42
Your offset time is: 2024-11-24 03:23:42