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 Studio Chat / [SOLVED] 3d game

Author
Message
henrikh2008
13
Years of Service
User Offline
Joined: 25th Apr 2010
Location: Denmark
Posted: 19th Feb 2023 19:36
Hi, trying to make a simple 3d game, not really a game, maybe just a demo, but i am really trying to get comfortable with the app game kit syntax.

have`nt been touching programing for allmost 3 years.

So far so god, every thing is working, but the glass shader i did aplied to the teapot object (teapot.obj) is not transperent, i do admit i have`nt touch much shader programming, so my
understanding in shader programming is very limit, dont get me wrong, i know what a shader is , and i am used to blender, not an expert really.

The shader i am using, is from the shader pack.

Allso, i would like to apply a mouse movement, so when user move mouse left, then camera moves left, if mouse is moving forward, then camera should look up, just like in those "look around of the environment effect", or whatever it is called.

Here is my code.




picture atachment of the 3d demo.

The author of this post has marked a post as an answer.

Go to answer

henrikh2008
13
Years of Service
User Offline
Joined: 25th Apr 2010
Location: Denmark
Posted: 19th Feb 2023 19:38
Strange, i did attach a picture in this post, but it is not showing.

trying again.

henrikh2008
13
Years of Service
User Offline
Joined: 25th Apr 2010
Location: Denmark
Posted: 19th Feb 2023 19:39
This post has been marked by the post author as the answer.
[img]null[/img]
jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 19th Feb 2023 23:40
You're off to great start, there is a decent set of camera commands just take a look at the 3d content of the help site .

If you start to look into using the 3D physics, then you will end up with something like the following in your init method:
create3DPhysicsWorld(#)
Set3DPhysicsGravity(x, y, z)

Then in your main loop you will also be calling Step3DPhysicsWorld() in addition to the usual sync.

Check out Automation on Steam now
https://store.steampowered.com/app/1698690/Automation/
henrikh2008
13
Years of Service
User Offline
Joined: 25th Apr 2010
Location: Denmark
Posted: 20th Feb 2023 17:12
figured it out.

do

xmouse=GetPointerX
ymouse=GetPointerY

SetcameraLookAt(1,xmouse,ymouse,1,1)

sync()

loop
henrikh2008
13
Years of Service
User Offline
Joined: 25th Apr 2010
Location: Denmark
Posted: 20th Feb 2023 17:58
hmmm, i wonder if i can still use the old TGC
product, like Treemagik, Plant life, Dark shaders and is it
compatible with App Game Kit Studio ??. (importing trees, plants, shaders)..
Especially the Dark shader editor, then i wont have to deal
with complex shader programming.
henrikh2008
13
Years of Service
User Offline
Joined: 25th Apr 2010
Location: Denmark
Posted: 21st Feb 2023 14:03
Thank you jd_zoo.

Login to post a reply

Server time is: 2024-03-28 22:40:17
Your offset time is: 2024-03-28 22:40:17