|
1 registered members (AndrewAMD),
599
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Wanna turn your panels into entities? Look here!
[Re: EvilSOB]
#328409
06/13/10 00:23
06/13/10 00:23
|
Joined: Jul 2004
Posts: 1,710
MMike
Serious User
|
Serious User
Joined: Jul 2004
Posts: 1,710
|
LOl, i wanted to say: the panel in (3d) (if) has text in it.. is it, readable like, so you can read it quite good, (without very distorsion..) (anyway i think i can guess how it would look like.. perhaps with smooth edges
Last edited by MMike; 06/13/10 00:25.
|
|
|
Re: Wanna turn your panels into entities? Look here!
[Re: MMike]
#328412
06/13/10 00:33
06/13/10 00:33
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Try it with the demo code in the spoiler of the initial post.
Put whatever text/fonts you want into the test panel and run it. You can use the pgup & pgdn keys to rotate it...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Wanna turn your panels into entities? Look here!
[Re: MMike]
#328588
06/14/10 07:52
06/14/10 07:52
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
ent.scale_x = screen_size.x/800; ent.scale_y = screen_size.y/600;
Did you try something like this, EvilSOB (or MMike)? That is, if the panel's size is designed for 800*600 resolution... works for panels, but I dunno if it works for screen ents as well...
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
Re: Wanna turn your panels into entities? Look here!
[Re: Germanunkol]
#328591
06/14/10 08:14
06/14/10 08:14
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Nope, view-entities are not that simple unfortunately...
Their size-on-screen is affected by entity-size(entity.min_x,y,z & entity.max_x,y,z), depth-from-camera(entity.x), screen_size, camera.arc and camera.aspect. And those are just the ones I have found so far.
Any form of auto-resizing depends an ALL those factors, and its just WAY too complex an algorithm for me to figure out by a combination of thinking and trial-and-error.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Wanna turn your panels into entities? Look here!
[Re: Carlos3DGS]
#329587
06/21/10 12:45
06/21/10 12:45
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
If it displays on panels, it SHOULD work with this.
My code captures the render-output from any panel and creates a sprite from it.
So if you can put it on a panel, my function will display it.
Its just immune to the mouse ATM, so you can but buttons and sliders on it, but they wont 'react' to the mouse...
If you have any problems, let me know...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Wanna turn your panels into entities? Look here!
[Re: MMike]
#329597
06/21/10 13:21
06/21/10 13:21
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
OP
Expert
|
OP
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I cant get a trace to detect the XY or UV co-ord of the hit without a collision-shape, and I need that co-ord fo know what buttons,etc to activate.
And if I create a box with min_xyz, max_xyz it detects a hit, but not the co-ords.
ATM Im trying to dynamically create a directx collision-shape for the mouse to react with.
Then I will be able to get it to react to the mouse (I think).
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|