Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a 2D interactor #49

Open
mwestphal opened this issue Nov 12, 2021 · 14 comments
Open

Consider adding a 2D interactor #49

mwestphal opened this issue Nov 12, 2021 · 14 comments
Labels
type:enhancement New feature or request

Comments

@mwestphal
Copy link
Contributor

If an image is 2D, it can be useful to have a 2D interactor (I'm thinking of DXF or medical images).
And tbh, if we implement it, then it makes sense to supports JPG/PNG/TIFF/HDR/TGA/... too since it is basically free.
I know this is not the main purpose of f3d but since f3d is GPU accelerated, it may outperform other image previewers with large images.

@mwestphal
Copy link
Contributor Author

@mwestphal mwestphal added the type:enhancement New feature or request label Nov 12, 2021
@jpouderoux
Copy link
Collaborator

Good idea - however, as images are loaded as textures, there are limited in size.

@mwestphal
Copy link
Contributor Author

images are not loaded as texture but as geometries, in vtk. not sure wht you mean.

@jpouderoux
Copy link
Collaborator

jpouderoux commented Nov 26, 2021 via email

@mwestphal
Copy link
Contributor Author

After trying playing with fbx and textures, supporting images (png, jpg, tga) and a 2D interactor makes complete sense !

@mwestphal mwestphal added this to the 1.3.0 milestone Dec 5, 2021
@jpouderoux
Copy link
Collaborator

Work in progress!

@mwestphal
Copy link
Contributor Author

Is this still planned @jpouderoux ?

@jpouderoux
Copy link
Collaborator

Is this still planned @jpouderoux ?

I just rewrote the old MR for the new master in #438. Let me know what you think.
Note: it does not includes image reading as the previous MR. We should do that in a dedicated MR.

@vmario89
Copy link

vmario89 commented Nov 28, 2022

hi. found this ticket when searching for dxf. Basically, i found the F3D tool because i was looking for a tool which can create thumbnails for Linux for DXF files. It works, but 2D DXF are looking totally wrong. Seems there is no support for 2D DXF yet. I am a vector grahpics guy, which often converts SVG to DXF to postprocess them later on.

this is the output by F3D:
grafik

by the way i am using Fedora and F3D can be installed easily using alien:

wget https://github.com/f3d-app/f3d/releases/download/v1.3.1/f3d-1.3.1-Linux.deb
sudo alien --to-rpm -vv f3d-1.3.1-Linux.deb
sudo rpm -ivh f3d-1.3.1-2.x86_64.rpm --nodeps --force

@Meakk
Copy link
Contributor

Meakk commented Nov 28, 2022

Hi @vmario89

The DXF support in F3D is done with Assimp, and the support is not great, to be honest.
For instance, it only supports polylines but not curves.

Also, you are only seeing an horizontal line because the thumbnailer does not orient the DXF file properly in 1.3.1 (the 2D is drawn on the Y=0 plane, so everything is projected onto a line)
It is fixed already on master, and it will be fixed in the next release.

@Meakk
Copy link
Contributor

Meakk commented Nov 28, 2022

As a workaround to the orientation problem, you can modify the file f3d.thumbnailer and add --up=-Z to the command line.

@vmario89
Copy link

nice to know. thanks for help! that works fine (except the curves)

@mwestphal
Copy link
Contributor Author

@vmario89 Thanks for using F3D et do not hesitate to join our discord :)
https://discord.f3d.app/

@mwestphal mwestphal modified the milestones: 2.0.0, 2.1.0 Mar 28, 2023
@mwestphal mwestphal modified the milestones: 2.1.0, 2.2.0 Jun 18, 2023
@mwestphal mwestphal modified the milestones: 2.2.0, 2.3.0 Sep 17, 2023
@mwestphal
Copy link
Contributor Author

@jpouderoux are you still around ?

@mwestphal mwestphal removed this from the 2.3.0 milestone Dec 21, 2023
@mwestphal mwestphal added this to the 2.4.0 milestone Dec 21, 2023
@mwestphal mwestphal added the help wanted Please help with this issue! label Jan 7, 2024
@mwestphal mwestphal added workflow:discussion and removed help wanted Please help with this issue! labels Jan 22, 2024
@mwestphal mwestphal removed this from the 2.4.0 milestone Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request
Projects
Status: To do
4 participants