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 / limit to 3d objects+physics??

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:11 Edited at: 13th Jan 2019 01:11
Ah sorry man,didnt mean to offend,i will surely give your way a try, and compare with whatever i can conjure up from the other,every help is appreciated fully!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:15
No offense taken - others must beleive in my programmming skills to help you thats all. dammm
puzzler2018
User Banned
Posted: 13th Jan 2019 01:16
Have you tried my last code and texture
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:17
well,thank you for your help so far! you defo know more than me!
Hail to the king, baby!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:19
not,i actually missed the post..lol..so much entry! let me give it a whirl.... I only saw the screenshot attachment
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:21 Edited at: 13th Jan 2019 01:22
Yeah sorry it was - here it is



Its UV wrapped

Attachments

Login to view attachments
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:22
I see why you thought now..hehhe..sorry!!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:24
Dont understand why your sorry.

No need to be

puzzler2018
User Banned
Posted: 13th Jan 2019 01:25 Edited at: 13th Jan 2019 01:26
ts never ending Minecraft.. Yipeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee with a bit of chunk greediness

LOL
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:26 Edited at: 13th Jan 2019 01:31
okay,tried it, brilliant! thankyou so much! i thought i was moving then but i think the texture scrolls! awesome man

wait no,the cam just rotates,still though..looking good
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:30
No worries, If any other quirks you may have with meshes then shoot the query here. and we will work together to resolve.

Remember - its a mesh so collisions will be dfficult
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:34
ah i see,so would it be wise to just drop the physics and use ray casting? I already have functions for that
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:39
Yes - I would remember each cube minx, miny, minz, maxx,maxy,naxz to ultiimately creating a bounding box for each cube you add and ray cast again those remembered x#,y#,z#

Dang hope that makes sense
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:41
err.... damnit i dont want to pee you off again..but.. nope!
Hail to the king, baby!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:43 Edited at: 13th Jan 2019 01:44
thanks though,this code is invaluable and i will damn well learn from it for sho'
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:47
Its something i strugglng with too... This is the issue with memblock work.

So you have to choose,


- Use 6 planes for a box

- Or memblocks - FPS is nice isnt it.


Which one you like to go for - first option one you can use the AGKs internal raycasting commands quite nicely, the 2nd, will have to thnk
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:51
yeh,gotta say fps is nice,a lot more work code wise as i lose the nice character controller, but i don't want crappy fps speeds also! let me see how far i get with the latest code you did!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 01:53 Edited at: 13th Jan 2019 01:54
No worries, Awesome.. I must sleep now so I will continue in the morning when ever that maybe

PS. we need to work harder to try and reduce the FPS - for an App thats important.
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 01:56
aite man,sleep tight,i dont! not even the friggin mirtazapine knocks me out
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 02:00
Dammm man - look after yourself - a sleep is refreshing unless the ghosts and goolies wake us up at 3am ish


shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 02:02
pishshshshsshs, ghosts and goolies,ya speaking to someone who roamed the streets at midnight at 7 years old, and every dark corner i saw,i went into.
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 02:09 Edited at: 13th Jan 2019 02:10
Dammmm Thats not good.....Why would you bring that conversation up - is it important?

At least you remember what you did at the age lol
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 02:10 Edited at: 13th Jan 2019 02:12
nope, in fact.....
back to the codingzzzzz!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 02:11
Moving on then...
puzzler2018
User Banned
Posted: 13th Jan 2019 02:19
Ok so we have flat bed surface... - would at any point you want to dig holes into that main surface at all?
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 02:21
actually that would be cool yes, more gameplay mechanics the better!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 02:23
Dang - another Minecraft invention - bring it on.....

Ill post some code as to how that is done tomorrow. Is 2.30am here. and need a few hours


puzzler2018
User Banned
Posted: 13th Jan 2019 10:55
Here is a meshblock version - creates individual cubes to create ground,floor,sides



Just need to nip out for a bit.

Later, Will do the same version but with AppGameKit objects/clone objects - but using the memblock function above to create a multitextured cube



Attachments

Login to view attachments
puzzler2018
User Banned
Posted: 13th Jan 2019 12:32 Edited at: 13th Jan 2019 12:34
This version is creating a multi-texture cube using the texture from previous post

At least now can use AppGameKit collisioning system with Ray Casts etc



Instead of Cloning, I used Instance Object

I really need to get my head around collision system on both methods but the mesh memblock collision system is much harder to fathom out - so will have to come back soon for that
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 12:56 Edited at: 13th Jan 2019 12:56
just woke up,and it is 12:54pm.. OUCH!

Need to come around to reality

COFFEE
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 13:08
Dammm thats a really good lay in... Welcome to the day

Here is the collisioning - Press Left mouse button



This is on AGKs collisioning Ray casting..
puzzler2018
User Banned
Posted: 13th Jan 2019 13:15
Press Right moouse button to add a cube



Shall come back later for more
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 13:19
need to charge the windows tablet, it uses the same port for a mouse to charge so I only get so long on it!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 13:22 Edited at: 13th Jan 2019 13:23
Shall i change the left / right mouse buttons to omething else?

If you change the code starting at line 130 ish



Better effect
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 13:33 Edited at: 13th Jan 2019 13:35
yeh tnx,i will suss it, find some spare keys on my keyboard,I have it all using either keys or key combos for shortcuts,like cursor keys moves my 3d cursor based on the objects maxsizex/maxsizez values, but if i hold control down whilst pressing cursor keys then it moves based on the value in the smooth# box!
Hail to the king, baby!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 13:52
ok around half an hour left for full charge,then i delve into your codez
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 14:16
Awesome - catch up later

Enjoy
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 14:23
copy/pasting from here brings weird chars into agk editor:




Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 14:27
Those a TABS

What Unicode or Encoding do you have set?

Mine is

Attachments

Login to view attachments
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 14:29
have same set?!
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 14:33
Could you try

- Document

- Replace Tabs with Spaces

see how that goes

shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 14:37 Edited at: 13th Jan 2019 14:38
nope,wont change a thing,with or without block selecting it all
Hail to the king, baby!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 14:37
try pasting back to your own ide
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 14:40
Works ok for me - does it do the same for anyone else that maybe on today?

Ill zip it up and attach the project

Attachments

Login to view attachments
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 15:36
I only get 12fps
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 15:44
Damm thats not good - see what i mean with AGKs versions

Try meshmemblock version

Replace the code with the code in the main.agc file


Attachments

Login to view attachments
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 16:02
better,if it has to render a full screen i get 25-30fps,depends where i look with the mouse,i will shoot up to 50 at certain points
Hail to the king, baby!
puzzler2018
User Banned
Posted: 13th Jan 2019 16:06
Ok cool

Now need to work on collisions or a coordinate function to find where we are on the mesh.

Bear with me on that cause its a little tough to work out, im doing this for Minecraft thread at the moment.
puzzler2018
User Banned
Posted: 13th Jan 2019 16:13
But then there is the idea that you oriiginally had in creating a larger area cube which does the UV wrapping images

So will try this next before delve into meshmemblocks

shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 13th Jan 2019 23:45 Edited at: 13th Jan 2019 23:53
decided to hack around my problem, to simply scale up for the outer walls/floors with rotations where needed i will cap off any visible inner wall ends with another object/ minus the physics body and mess with the drawing depth of objects..
another option to me,still far less objects than i originally needed,is to simply scale up for the outer walls/floors with rotations where needed, and set single blocks for inner walls.. but trying to avoid the latter and keep the amount of objects needed down..
It is hacky as I said but totally do-able
Hail to the king, baby!

Login to post a reply

Server time is: 2024-11-23 11:55:02
Your offset time is: 2024-11-23 11:55:02