LINE_P() and TRIANGLE_P help!!
|
01-24-2016, 03:48 AM
Post: #1
|
|||
|
|||
LINE_P() and TRIANGLE_P help!!
I have a question about the LINE_P and TRIANGLE_P commands. Both of them have optional advanced syntax, the help hints that it can be used for 3D functions and the such!! I have a hard time understanding the help on it is could someone could show me and give an example, the help is very appreciated
|
|||
01-25-2016, 07:54 AM
Post: #2
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Hello,
Han is the specialist in this domain. He uses the functions extensively in his 3D grapher. Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
01-25-2016, 06:53 PM
Post: #3
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Here's a short article that should help you get started for TRIANGLE_P; LINE_P should be very similar.
http://www.hpmuseum.org/forum/thread-5122.html Graph 3D | QPI | SolveSys |
|||
01-26-2016, 02:39 AM
Post: #4
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Thanks
|
|||
01-26-2016, 02:51 PM
Post: #5
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Would this be applicable for a game, or even fast enough?
|
|||
01-27-2016, 05:53 AM
Post: #6
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Hello,
It depends what you want to do, how many triangles you have to draw... It is not slow as Han's 3D drawer shows, but it is not rocket fast either... Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
01-28-2016, 07:01 PM
Post: #7
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
I was thinking for a game I am making in 2D, MinePrime over at Codewalr.us. From the start I wanted to make it 3D but never thought I could, I would have o make th POV really small so I wouldn't have to draw so many. There would probably be < 200 but textures would be impossible xD
|
|||
01-29-2016, 05:53 AM
Post: #8
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
hello,
Yep, sorry, at this point in time, triangle only colors, but does not texture. cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
01-31-2016, 05:17 AM
Post: #9
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
*uses triangles for every pixel on block
*gets < 0.000000000000001 FPS |
|||
01-31-2016, 03:51 PM
(This post was last modified: 01-31-2016 06:45 PM by StephenG1CMZ.)
Post: #10
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
(01-31-2016 05:17 AM)alexgt Wrote: *uses triangles for every pixel on block If my maths is right, that is about 1 frame per 32 million years, isn't it? I think I am going to need some long-life batteries... Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
02-01-2016, 02:00 AM
Post: #11
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
And you will have to be a time lord xD
|
|||
02-04-2016, 11:06 PM
Post: #12
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
The Prime can do graphics pretty quickly. Have a look at http://www.hpmuseum.org/forum/thread-5628.html
|
|||
02-05-2016, 12:12 AM
Post: #13
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Wow! Nice
What method did you use for the 3D effect? |
|||
02-05-2016, 10:58 PM
Post: #14
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
It's described as Pseudo 3d: parallax scrolling for the background, proper 3d rendering for the road segments and blit the car at the bottom of the screen.
That the Prime can hold png files with transparency within an application structure and blit them to the screen very quickly really helps. To stop flicker, build up your graphics in say G1 and when complete blit them to G0. Have a look at this fantastic set of tutorials: http://codeincomplete.com/posts/2012/6/2...ipt_racer/ |
|||
02-07-2016, 06:53 AM
Post: #15
|
|||
|
|||
RE: LINE_P() and TRIANGLE_P help!!
Yeah, I use drawing to G1 then to G0 to solve flicker quite a lot but I was interested in the 3D
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)