B4A Library ThreeD library (alpha 0.04)

MarkusR

Well-Known Member
Licensed User
Longtime User
Hi Markus ,
should this code not draw a triangle , instead of a line ?

hi,
its because the draw mode, i had add for you
Surface1.SetTypeLineStrip
Surface1.SetTypeLineLoop

typical line mode is from to from to from to

see gl constants
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP
 

alienhunter

Active Member
Licensed User
Longtime User
hi,
its because the draw mode, i had add for you
Surface1.SetTypeLineStrip
Surface1.SetTypeLineLoop

typical line mode is from to from to from to

see gl constants
GL_LINES
GL_LINE_STRIP
GL_LINE_LOOP

Markus ,
that is awesome , thank you very much


how would you draw a shaded disk like that , or anything round
i assume only with SetTypeLineLoop
i could not find anything else





also please if you have time
can we have
cullface
 

MarkusR

Well-Known Member
Licensed User
Longtime User
Markus ,that is awesome , thank you very much
how would you draw a shaded disk like that , or anything round
i assume only with SetTypeLineLoop
i could not find anything else

also please if you have time can we have cullface

i think i would make a circle in 360°/10 = 36 steps, looks almost round.

i gave you a flag Three.CullBackFace = True
off (default) looks better for transparent objects

here are some supported drawmodes from open gl es explained with pictures in the pc version.
most of the open gl commands did not exists in open gl es.
https://wiki.delphigl.com/index.php/glBegin
 

alienhunter

Active Member
Licensed User
Longtime User
Markus
thank you very much
and thanks for the link

this is powerful Markus , good job

holy
your lib
~9000 triangles 1.25 MB Ascii Format on a Emulator

$80k CAD/CAM software


~53000 Triangles 9.9 Mb Ascii



AH
 
Last edited:

alienhunter

Active Member
Licensed User
Longtime User
Hi Markus

can we have this if possible , rotate/scale/Translate , with not rebuilding the scene ?
or i am missing something
thanks again for your lib
 

MarkusR

Well-Known Member
Licensed User
Longtime User
Hi Markus

can we have this if possible , rotate/scale/Translate , with not rebuilding the scene ?
or i am missing something
thanks again for your lib

each entity (basis class) have a Position & Rotate vector, its used every frame draw in real time. u can just change the values.
i had add scale there for you.
 

alienhunter

Active Member
Licensed User
Longtime User
Markus ,
thank you for your support , I think that is all what i needed for now
i will start building my stuff and let you know on this thread.

Just in case if there a Tochevent in Opengl ES, like selecting the item ?

Thank you /Vielen Dank fuer deine Hilfe
Gruss
AH
 

MarkusR

Well-Known Member
Licensed User
Longtime User

not that i know, let me know if you need something ..
 

alienhunter

Active Member
Licensed User
Longtime User
Hi
Just wanted to share with you my APP with your library
it is in very early stages but this is my first CNC code produced , so hurray ..
icons and other will be better , they are just copies from a other CAM system



thank you again for your time and help
i will keep you posted
AH
 

alienhunter

Active Member
Licensed User
Longtime User
nice, it seems you put a lot of work in this cnc tool.

Yes Sir
now i try to develop simple cutting algorithms ... for now
drive the tool in X Y on 45 degrees and so on
it will look something like this ... just a sample ... not correct yet
 

Attachments

  • Capture.PNG
    10 KB · Views: 254
Last edited:

Adamdam

Active Member
Licensed User
Longtime User
Hi, sir

Can I add click position ? or
I need to get which object I clicked ?

Best regards
 

Adamdam

Active Member
Licensed User
Longtime User
Dear Eng. Markus
Greetings,
Is the library any way to find "what object that I catch/clicked on the view" ??
Or " find the location of click/double-click say in the view (3D position) " ??
Best regards
 

Adamdam

Active Member
Licensed User
Longtime User
Dear Eng. Markus
Greetings,
Is the library any way to find "what object that I catch/clicked on the view" ??
Or " find the location of click/double-click say in the view (3D position) " ??
Best regards
 

MarkusR

Well-Known Member
Licensed User
Longtime User
Dear Eng. Markus
Greetings,
Is the library any way to find "what object that I catch/clicked on the view" ??
Or " find the location of click/double-click say in the view (3D position) " ??
Best regards
sorry, it is not implemented. for my need i used a object listbox to select a 3d object.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…