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 / Image to 3D Led's

Author
Message
puzzler2018
User Banned
Posted: 27th Dec 2018 20:51 Edited at: 27th Dec 2018 20:52
Something always wanted to try



Move about with WD - and cursors
Use the example 64 x 64 image - make your own of course...

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 27th Dec 2018 20:58
That's pretty neat Puzzler
fubar
puzzler2018
User Banned
Posted: 27th Dec 2018 21:08
Thanks

I dont think we need the white space though - makes the FPS appealing


Attachments

Login to view attachments
puzzler2018
User Banned
Posted: 27th Dec 2018 21:15
Change the code



And no more font creating.... lol
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 27th Dec 2018 21:27
Excellent I think it might work better with a more square font tho but that's a personal preference

A different method
To get the digital scoreboard in Carnival Games i used a digital font and planes for each number
but i deleted the old ones and then recreated the score planes everytime the score changed.

With this function



And your 3D letter code ive seen in the past i beleive when Blocklifter was being developed
was great and really should get a mention here i feel. The main reason i didnt end up using
it because back then there was no way to export as an obj But it definately was inspiring.
fubar
puzzler2018
User Banned
Posted: 27th Dec 2018 21:32 Edited at: 27th Dec 2018 21:32
One last one for tonight

Yes they are 3D Objects




Made internally - they will all need to be put into a single mesh for FPS but looks great...


Good night folks
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 27th Dec 2018 21:34
wow a 3D Colour Board
fubar
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 27th Dec 2018 22:07
Nice effect puzzler .
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 27th Dec 2018 22:36 Edited at: 27th Dec 2018 22:37
Thanks...

The 3D Objects could be double sided planes that flip with different attached letters to look and feel like an international Airport signage outgoing flight information panel.

But thats my head again - we dream to code....
puzzler2018
User Banned
Posted: 28th Dec 2018 11:25
Just thought try heights with this method



Move around cursors and WD
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 28th Dec 2018 11:33
Very Clever
fubar
puzzler2018
User Banned
Posted: 29th Dec 2018 16:25
We can make some really good title screens with this


Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 20:41 Edited at: 31st Dec 2018 20:43
Its off the topic of light boards but I revisited your light board and thought it could
be handy as a very fast height map creator



needs this image http://users.tpg.com.au/subarpk/map.png

I think then another smoothing function could be used to set the vertex height of the top vertex to its adjacent blocks vertex height
ie if the following represents 2 blocks side by side
.........22222
......…22222
111122222
111122222
111122222
the output would then be
…….…..22
……….222
11112222
11112222
11112222

Il have a think about how smoothing could best be achieved
fubar
puzzler2018
User Banned
Posted: 31st Dec 2018 20:51
Yeah thats super cool

Its alright isnt it...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 21:12 Edited at: 31st Dec 2018 21:14
Sure is
Im trying to work out what the top vertexs are so I can set the heights of the top vertex's but ive forgot
and hopefully endup with like a flat shaded terrain made from a 64 by 64 height map that could be
scaled as a track etc lol really just playing but like the idea of driving on a elevated road like stunt car racer
put aside what i was doing in blender for now lol


this routine moves the bottom ones inward
fubar
puzzler2018
User Banned
Posted: 31st Dec 2018 21:28
Thats great news and happy it comes in useful

Not sure if seen this, but what does this look like - a 3D ???



Pic is called

board.png

Attachments

Login to view attachments
puzzler2018
User Banned
Posted: 31st Dec 2018 21:42
We could do many things with this too.

Like

a full Red colour signifies a bridge that goes over a road
a full Yellow colour signifies a road underneath a bridge
a full Blue colour signifies a change of object like a cylinder (powerdrift)
a full Green colour signifies something else

The options are endless...

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 21:50 Edited at: 31st Dec 2018 21:50
Hi there.

@puzzler I have found very usefull one of your last codes.... we could use it to get nice sprite look

Use any 3D image to get the effect .

I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 31st Dec 2018 21:55
Yeah - i pixelated image scaled up - nice one...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 22:11 Edited at: 31st Dec 2018 22:14
Ive looked on the memblock and Minecraft post, I thought someone did a diagram of where the vertex positions are on a cube
but cant find it I even mustve deleted my explanation I had somewhere in code. if you have an explanation

all i can find is [1,19,20] will allow the front facing bottom corner of a cube, ideally i want to know what the top four indices that need
shifting. If you have a cube vertex/indice map or explantion somewhere and if it wont take much time can you please share

there should be 8 sets of 3
fubar
puzzler2018
User Banned
Posted: 31st Dec 2018 22:14 Edited at: 31st Dec 2018 22:15
Here is a cube vertexes



Ignore the colours and UVs - they are messed up - will fix but the positons are there
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 22:29
Thanks im almost there

I only want to move the top ones
so I have worked out corresponds to the top corners of the box
but I know I have to have the other faces etc move so im unsure
with the "??" bits

[8,??,??]
[9,??,??]
[10,??,??]
[11,??,??]
fubar
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 22:32
@fubarpk Take a look to this little snippet ...if you want, I can do one more elaborated .


I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 31st Dec 2018 22:35 Edited at: 31st Dec 2018 22:37
Bear with - ill write some code


EDIT - Awesome..-- Bloooooody GENIIUS!!!!
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 22:39
I know that feeling !!
I'm not a grumpy grandpa
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 22:41
Thanks chafari, now why didn't I think of that lol
//top left front 0,9,18
//top right front 2,4,11
//top left back 8,14,16
//top right back 6,10,12
fubar
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 22:44
@fubarpk What do you want to do ?.... move the four corners up ?
I'm not a grumpy grandpa
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 22:53
Im using a variation of Puzzlers light board to make a sort of height map from a 16 by 16
image. I m thinking if I set the heights like the ledboard works I could then use it to create a
height map the problem is that it would be block so I figure a simple smoothing function
would be that every second pixel use that to set the height as such and then the previous
color the left top vertex height if that makes sence I should have something soon and that
should give a kinda flat shaded attempt at a height map.

Why you might ask lol Im presently thinking a track made up of blocks that has ramps etc
set by the heights in the image see above snippet

fubar
puzzler2018
User Banned
Posted: 31st Dec 2018 22:58
How about rotatiing the object say a few degrees according to the height
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 22:59
Yeah I can figure out what you try to do .
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 31st Dec 2018 23:11
Me too - ill work something out using rotations of the objects again your map to make a nice smooth surface, but will have to be tomorrow now

puzzler2018
User Banned
Posted: 31st Dec 2018 23:17
Like I suggest, we could use colours on the 2D image to do certain things

full red colour - rotate object 45 degress
full yellow colour - rotate object -45 degress
puzzler2018
User Banned
Posted: 31st Dec 2018 23:22 Edited at: 31st Dec 2018 23:24
Like prepare an image like this

does the same thing but the gradients of red signifies a change in rotatation either up or down - the gradients of it signifies the height will still follow the same method - up or down.

Attachments

Login to view attachments
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 23:36 Edited at: 31st Dec 2018 23:38
I can guess what you mean, but if we rotate every box in order they looks like a ramp ....could we do something like this ? :

I'm not a grumpy grandpa
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 31st Dec 2018 23:37 Edited at: 31st Dec 2018 23:39
yeh that might work

my thoughts were something like this


still needs much work but the idea is just to grab the blocks coords to the left not the previous im thinking but that should explain what im trying

think it needs a separate function tho
fubar
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 23:44
@fubarpk
Now I think I understood !...so you want to smooth let say every layer with the next ?
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 31st Dec 2018 23:50
Yeah i think so.

I can work with that.. To make the height levels the same as the one in front. after all , all we worried about is the top plane of a box. why does it need to be a box. all we will see is the top surface of the game anyway

Why, they could be all planes all joined together - i think i did some terrain work on how to join objects together in my mesh memblock thread.
puzzler2018
User Banned
Posted: 31st Dec 2018 23:53
Not mesh memblock but my take on terrain building


chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 31st Dec 2018 23:57 Edited at: 31st Dec 2018 23:59
Hey mate ...this one is nice !!


Edit :

Happy New Year 2019 for you all !!!
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 1st Jan 2019 00:02
Happy near year to you too
puzzler2018
User Banned
Posted: 1st Jan 2019 00:10
I have some ideas on what we need to achieve here, let me have an hour or two sleep and ill put something together in the morning for you
puzzler2018
User Banned
Posted: 1st Jan 2019 00:14
It will need me to go to my sprite modeller a 16x16 sprite and create a map as such - 1 pixel color per road/bridge/what ever else we need -

different colors signifying different things - rotations/overheads etc

ill show you soon

All will be good - promise
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2019 00:24
cool
happy new year chafari

I was thinking it would be something like below
which I think is simple enough to follow but the smooth routine needs work im going to have a coffee get some sleep puzzler
my idea is tow passes one on the x plane and then one for the zplane adjusting vertex according to the one before them. Il have a
another think too. I don't think it needs to be anything complex just thinking if height maps are grids like this is could be easy to
make a very low poly height map and the smoothing just flattening vertexs and to lessen prims could later remove all the 0 sized
ones
fubar
puzzler2018
User Banned
Posted: 1st Jan 2019 00:38 Edited at: 1st Jan 2019 00:40
It still looks the same rocky road - complex isnt it. But once we got it then aims high for future 2019 apps? - keep going strong..

Ill have a go at your method tomorrow

Attachments

Login to view attachments
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2019 00:47 Edited at: 1st Jan 2019 00:48
yeh I had it at one stage prior to the new function creating like triangular blocks lol
I know that's close and sure it could be handy for making low poly height map style games
the advantage is speed and simplicity over a height map lol I thought it was going to be
simpler still think the solution don't need to be complex. I just have to think about it

really wouldn't mind a raised track like in the original stuntcar racer and designing stuff
in a graphics editor is by far quicker and easier than designing 3d objects etc in blender
Well i guess i got a break from blender moving pieces around. and chafari vertex position
program was a great piece of code.
fubar
puzzler2018
User Banned
Posted: 1st Jan 2019 00:53
Yeah - and we can have those raised tracks and under bridges too in this form too - ill send my idea during tomorrow x Bear with me.

All is good
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2019 01:09
All good get some sleep
its already a new year here you prob just started one
fubar
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 1st Jan 2019 01:37
Ok guys ! ....I will have a look tomorow morning ....I don't wana have problems in bed ....arhhhgg

Cheers.
I'm not a grumpy grandpa
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jan 2019 08:07
Thanks haven't been in good headspace lately
prob why the last few weeks my code been so bad
but its a new year so all is good
fubar
puzzler2018
User Banned
Posted: 1st Jan 2019 11:39
Dammm - this is tough... Bear with me

Login to post a reply

Server time is: 2024-04-19 15:48:40
Your offset time is: 2024-04-19 15:48:40