New Header Meta


New Header Meta
#1
I'm going to add a simple META after the !CMDLINE meta:

0 !IMAGE_ADJUST <x,y,z> <rotation matrix>

This will tell the Library (and any other program that wants to use it) to adjust the rotation/position of a part before rendering it. This will allow for patterns or stickers that would otherwise not be shown in the default rendering to be shown (for example https://library.ldraw.org/parts/search/s...part=14718 ). This meta will only be included if the position adjust is not zero and the rotation matrix is not unity.

A couple of notes: 
 - I'm already doing this internal to the Library software but it's part of the general site settings and only editable by me. This will allow authors/header editors to adjust the image without my help, persist the settings through updates, and could be useful to other software as well.
 - As this is for display purposes only, a hold for for this meta would not be appropriate
 - I'm not invested in "!IMAGE_ADJUST" if you have a better suggestion
Reply
RE: New Header Meta
#2
(2025-02-20, 20:17)Orion Pobursky Wrote: I'm going to add a simple META after the !CMDLINE meta:

0 !IMAGE_ADJUST <x,y,z> <rotation matrix>

This will tell the Library (and any other program that wants to use it) to adjust the rotation/position of a part before rendering it. This will allow for patterns or stickers that would otherwise not be shown in the default rendering to be shown (for example https://library.ldraw.org/parts/search/s...part=14718 ). This meta will only be included if the position adjust is not zero and the rotation matrix is not unity.

A couple of notes: 
 - I'm already doing this internal to the Library software but it's part of the general site settings and only editable by me. This will allow authors/header editors to adjust the image without my help, persist the settings through updates, and could be useful to other software as well.
 - As this is for display purposes only, a hold for for this meta would not be appropriate
 - I'm not invested in "!IMAGE_ADJUST" if you have a better suggestion

Sounds good to me.
Reply
RE: New Header Meta
#3
I would be more specific in the description:

"to adjust the rotation/position of a part's preview image before rendering it"
Reply
RE: New Header Meta
#4
(2025-02-20, 20:17)Orion Pobursky Wrote: I'm going to add a simple META after the !CMDLINE meta:

0 !IMAGE_ADJUST <x,y,z> <rotation matrix>

Sounds useful to me too.

But I would prefer it be called something like !BOM_COR, !PREVIEW_COR or just !PREVIEW

And maybe include the color number (ether using the type 1 format or as an optional last option).
Reply
RE: New Header Meta
#5
We've settled on !PREVIEW and the color is a good idea too. Code is ready but there are a couple of things I just thought of that I want to do. This will prolly go live early next week.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 4 Guest(s)