replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - %pl guide
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

%pl guide

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Kenneth_Smith



Joined: 18 May 2012
Posts: 837
Location: Lanarkshire, Scotland.

PostPosted: Wed Aug 27, 2025 12:11 pm    Post subject: %pl guide Reply with quote

I have added further examples to my %pl guide/notes, (briefly mentioned in another post). The updated document can be found here.

https://www.dropbox.com/scl/fi/jo676v54s78jt0vm72lox/pl_guide_ver2.pdf?rlkey=lkrf24bg9gbw6qb7sbl2k4044&st=01euszzk&dl=0

The 20+ examples cover many of the basic %pl options including calls to simpleplot_redraw@ to update plots but does not (yet) go as far as attaching a callback to the %pl region, which is when it can get very interesting!

I shall update this thread occasionally as I progress this further.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2937
Location: South Pole, Antarctica

PostPosted: Wed Aug 27, 2025 9:11 pm    Post subject: Reply with quote

Ken,
That was great guide to the art of 2D X-Y plotting with Clearwin!
Congratulations!

Was always missing such systematic collection of examples from simple to complex, ideally in the form of clipbook library so that you scroll the real examples visually, choose the needed type and in one click it is added to the source code. There with the few touches you correct some minor details. Same with other Clearwin controls. Plato would be ideal for that i think
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2937
Location: South Pole, Antarctica

PostPosted: Fri Aug 29, 2025 6:43 pm    Post subject: Reply with quote

If somebody also translated OpenGL book of examples on FTN95 that would be great.
25 years ago one guy (his nickname I think was djip) have done translation of so called OpenGL red book from C/C++ to some other Fortran compiler but I remember I still had some problems with that in FTN95. He was very helpful with some my stuff.

It's time to move to modern 2D/3D graphics (Ken have done ultimate in details and simplicity guide for that, so the majority have to stop being Luddites, essentially ignoring most of features FTN95 is capable of) , multithreading programming, multiprocessing, GPU acceleration, use GUI etc
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2415
Location: Yateley, Hants, UK

PostPosted: Sat Aug 30, 2025 12:13 pm    Post subject: Reply with quote

Dan,

I thought that you were the current OpenGL guru.

Ken's guide is terrific, and an excellent contribution. It is, however, a 'work in progress', as I think he'd admit. There are still things I don't get. For example, how %pl works to create a window without WINAPP, and why it doesn't need USE CLRWIN until you start to add in calls to WINOP@.

FTN95.CHM is a terrific guide when you know what you are doing and just consult it for reference (ditto the .ENH files), but none of them is a self-instruction text. What's more, despite reading everything on the subject I am only beginning to understand the differences between the original, included, simpleplot, the former, purchasable add-on, and 'native'.
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 460
Location: Manchester

PostPosted: Sat Aug 30, 2025 7:08 pm    Post subject: Reply with quote

You don't need WINAPP to produce Clearwin windows.
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2415
Location: Yateley, Hants, UK

PostPosted: Sat Aug 30, 2025 10:32 pm    Post subject: Reply with quote

Robert,

Now I am confused.

My FTN95.CHM tells me that the compiler directive WINAPP:

"Creates a Windows executable for use with ClearWin+ (see the ClearWin+ documentation for further information)."

(sic)

Now I discover that I don't need WINAPP to use Clearwin+. It can't be an update since the v8.95 that I'm using, because Ken's examples work ....

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8254
Location: Salford, UK

PostPosted: Mon Sep 01, 2025 8:30 am    Post subject: Reply with quote

WINAPP is used to create a Windows application rather than a console application. If you run a Clearwin+ application without WINAPP (or its equivalent) then you will get a DOS box first and the app is launched from the DOS box.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8254
Location: Salford, UK

PostPosted: Mon Sep 01, 2025 8:37 am    Post subject: Reply with quote

FTN95 knows about winio@ so you don't need "use clrwin" for winio@ on its own.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2415
Location: Yateley, Hants, UK

PostPosted: Mon Sep 01, 2025 12:02 pm    Post subject: Reply with quote

Aha! I get it now. And for reasons of economy, the console window doesn't appear if there isn't any output for it - or hides itself somewhere, or I wasn't looking in the right place ...
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2937
Location: South Pole, Antarctica

PostPosted: Wed Sep 03, 2025 7:44 am    Post subject: Reply with quote

Eddie,
I have 0.01% of needed knowledge of OpenGL to write any guide for everyone, I know only that absolute minimum about OpenGL which is barely needed to do what I do. And still have a lot of questions about it.

/** That all comes from the principle of good old Salford Fortran, expressed 35 years ago which I understood this way: you do not need to learn any other language besides Salford Fortran and you still will be able to do 99.9% of what you need, and often will achieve it much faster. That perfectly worked for me. Painfully missing there was parallelization but luckily for that from the end of 1990th I used third party parallel libraries, excluding last 3 years when other more standard and modern methods of parallelization - like MPI and GPU - became necessary)

Questions about OpenGL which I still have are of this sort:

1) How the game developers succeed to create real time 4k 3D OpenGL games with 60-120 frames per second while my plots - though very attractive and simple - take 100-1000x more time?

2) How come having 24GB or VRAM I can plot only 35 million polygons which require only 5-10% of that and more do not fit into videocard memory ? (Each polygon defined by 4 points (its corners) in 3D space, each point is 3 single precision numbers in Cartesian x,y,z coordinates)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group