mainpyFormex - Support: sr #108726, How can set the parallel...

 
 

sr #108726: How can set the parallel perpective as default?

Submitter:  francesco <francio>
Submitted:  Thu 15 Jan 2015 03:52:52 PM UTC
   
 
Category:  Rendering Priority:  5 - Normal
Severity:  3 - Normal Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 16 Jan 2015 08:13:48 AM UTC, comment #5: 

I am not sensitive about it (you have the option to set it as you wish). I just wanted to try to teach you some good habits, while you're still young and adaptable ;-)

The support items can (usually) stay open, because they often discuss some problems that others might also be interested in.

Benedict Verhegghe <bverheg>
Group administrator
Fri 16 Jan 2015 07:42:32 AM UTC, comment #4: 

I did not know you were so sensitive about the topic and i sorry for the people I might share code.
The startup is perfect,I was just curious about the .conf. do the supports need to be closed?

francesco <francio>
Group Member
Thu 15 Jan 2015 07:37:35 PM UTC, comment #3: 

Why do you hate perspective view?

If you are a normal human being with two eyes and a normal brain, than all your everyday viewing is perspective.
I know there are cases where one would like or even needs to have perspective off (like when matching shapes or evaluating parallellism), but then it is easy to switch it off programmatically in those cases.
But in normal viewing, perspective gives a much richer and more correct view than projective. Just run the BarrelVault example in projective mode to convince yourself.

Now, if you switch perspective off by default, you might very quickly getting used to developing methods where projection is required to give a proper user experience, and you will tend to NOT write the perspective(False) anymore. If you keep your functions for yourself, that will not hurt anybody, but if you distribute such methods, other people, usually having perspective on, will be disappointed. Therefore I strongly suggest you to not disable it by default.

If you really have trouble with the perspective view, that probably means that the camera is too close to the object, giving a fisheye perspective. I did my best to get a normal human perspective view as default, but maybe that is not universally suited. Then just move the camera further away.
After all, if you move the camera far enough, there is only a subtle difference with projection (and in favor of the perspective view).

So there is enough reason why adding perspective off as an easily configurable value is not high on my todo list.
After all, if one insists on having it off by default, adding a line to startup.py is just as easy as adding a line to pyformex.conf.


Benedict Verhegghe <bverheg>
Group administrator
Thu 15 Jan 2015 05:45:41 PM UTC, comment #2: 

I hate the perspective view.
so I have to change the startup file and cannot be done in the conf? if you can do in the conf file how should I put it?

francesco <francio>
Group Member
Thu 15 Jan 2015 05:28:48 PM UTC, comment #1: 

If you notice that some button does not work, you should report it as a bug (if it isn't yet).

All config settings are in the pyformex/pyformex.conf file, and you can copy these settings to the user config file
~/.config/pyformex/pyformex.conf
and edit them there. You should however not do this while pyformex is running: on shutting down pyformex will overwrite the file with its settings.

Now for switching perspective automatically off, just add


perspective(False)


to the script where you want perspective to be off by default.

If you want to set this for all your scripts, you can add it to your startup script (default ~/.config/pyformex/startup.py).
Though my idea is that you must have weird applications or a weird brain ;) if you always want perspective off. It is generally preferable to switch it off only when needed.


Benedict Verhegghe <bverheg>
Group administrator
Thu 15 Jan 2015 03:52:52 PM UTC, original submission:  

the button to save preferences now does not work.
I don t know how to change the conf file for this, nor I was not able find information of how to change.

Also might be useful to have a button to report all settings so that at least you can copy the lines into the conf file in the correct position with the correct name

francesco <francio>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by francio (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code