Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
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 Offline
Serious User
MMike  Offline
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 Offline OP
Expert
EvilSOB  Offline 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: EvilSOB] #328541
06/13/10 20:15
06/13/10 20:15
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
OK .. just now realized the potential of this..
REAAllly help when comes to do 3d ui..

Nice contribution... really.
And thanks for you time!

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 Offline
Expert
Germanunkol  Offline
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 Offline OP
Expert
EvilSOB  Offline 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: EvilSOB] #328635
06/14/10 12:36
06/14/10 12:36
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
well in window mode it appears to be correclty scaled when i press space..
in full screen i havent tried.

Re: Wanna turn your panels into entities? Look here! [Re: EvilSOB] #329582
06/21/10 12:21
06/21/10 12:21
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
What about Windows? Does it work with those? would be great for healthbars and the like wink


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
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 Offline OP
Expert
EvilSOB  Offline 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: EvilSOB] #329593
06/21/10 13:04
06/21/10 13:04
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
well evil sob.. but there could be a function that traces the view to the object sprite, and get the hit coordinates.. and based on that point.. do something..
of course you would need to tell
between x 10 to 20 and y 20 to 30 its a button hit area.

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 Offline OP
Expert
EvilSOB  Offline 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
Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1