alex9490 / editor-on-fire

Automatically exported from code.google.com/p/editor-on-fire
Other
0 stars 0 forks source link

Allow for variable note graphic sizes #224

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
drihscol has offered to make some graphics, but the first major limitation I 
can see is that EOF is hard coded to use 48x48 note gem graphics.  Allegro has 
scaling routines that should make it easy to scale custom gem images down to 
that size, but 48 pixels wide is only necessary for the smallest EOF window 
display size (640x480).  From what I see, the graphics are just zoomed in via 
scaling when a higher display size is used, so instead, note gem graphics could 
probably just be scaled to fit the 3D fret board's lanes for the current 
display size.  This may require the logic for rendering the 3D sprites to be 
changed, as I think that the ocd3d_draw_bitmap() function stretches the bitmap 
to handle resizing based on the Z coordinate position, and we'd need to make 
sure the larger sprite images wouldn't additionally be zoomed in to overlap 
other lanes.

Original issue reported on code.google.com by raynebc on 5 Jan 2011 at 6:59

GoogleCodeExporter commented 8 years ago
How this enhancement is carried out will depend on how EOF's 3D rendering 
changes during the port to Allegro 5.

Original comment by raynebc on 8 Feb 2011 at 9:01

GoogleCodeExporter commented 8 years ago
I would like to be able to use note sheets similar to how FoFiX works. This 
would make it a lot easier to make replacement notes. Even better if it uses 
the same format as FoFiX.

Variable size is easy to do, even in the current code. I have an 
ocd_scale_bitmap() function somewhere that takes width and height arguments 
instead of using the bitmap's dimensions to determine drawing size. With this 
function you could have notes of any size and they would automatically render 
the correct size in the preview.

Original comment by xander4j...@yahoo.com on 10 Feb 2011 at 1:26

GoogleCodeExporter commented 8 years ago
I agree.  If we can support using FoF necks and notes, it will make everything 
much easier.

Original comment by raynebc on 10 Feb 2011 at 3:50

GoogleCodeExporter commented 8 years ago
On hold until the port to Allegro 5.

Original comment by raynebc on 22 Mar 2011 at 12:31