Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Magnifying Glass
dom cook
Div Pro
******




Posts: 387
Registered: 4-3-2016
Member Is Offline


[*] posted on 7-3-2019 at 03:14 PM
Magnifying Glass


All that is gold does not glitter.

This is a demo of how you can do a magnifying glass/telescope effect.
I've put some images down the left-hand side to illustrate the process, which is basically as follows.

1. Copy the section of the image you want to magnify.
2. Erase a hole in it.
3. Copy a magnified version of the section.
4. Put the image with a hole in it on top of the zoomed copy.
5. Put the image over the corresponding part of the big map
6. Draw a rim over the top.


Attachment: LOTR.PRG (3kB)
This file has been downloaded 847 times

Attachment: Lupe.FPG (1.5MB)
This file has been downloaded 906 times


[Edited on 7-3-2019 by dom cook]

ME3.png - 1.3MB
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 387
Registered: 4-3-2016
Member Is Offline


[*] posted on 7-3-2019 at 03:45 PM


I just realised that it would be more efficient to erase the outside of the circle of a zoomed image rather than the inside of the unzoomed one. The area that needs to be erased is reduced to about a quarter this way. The steps in the process would be fewer too.


1. make a zoomed copy
2. erase the area outside the circle.
3. put it over the map
4. add the rim.


View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 387
Registered: 4-3-2016
Member Is Offline


[*] posted on 8-3-2019 at 03:30 PM


This version lights up the area under focus a bit, but be careful not to set fire to the map.

fire and shadow.png - 291kB

Attachment: ABOVEALL.PRG (7kB)
This file has been downloaded 826 times

Attachment: Lupe.FPG (1.5MB)
This file has been downloaded 889 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 8-3-2019 at 04:01 PM


This is very cool and a lovely tutorial

At the moment I cant even get DIV to run on my mac :(
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 387
Registered: 4-3-2016
Member Is Offline


[*] posted on 8-3-2019 at 05:27 PM


Thanks Mike,
And treat yourself to a new computer, you deserve it.

View user's profile View All Posts By User
Vortigano
DIV Regular
***




Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline


[*] posted on 10-3-2019 at 09:35 PM


Wow, i try it.... When I have the time I would like to implement some of your programs using div dlls if you allow me.
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 387
Registered: 4-3-2016
Member Is Offline


[*] posted on 11-3-2019 at 05:51 AM


Of course, that would be great. I'd like to do that sort of thing myself but I'm clueless when it comes to the low level stuff. I've got quite a few ideas for dlls that would enhance DIV. Maybe we could work together on this.

By the way did you manage to burn the map?
View user's profile View All Posts By User
Vortigano
DIV Regular
***




Posts: 237
Registered: 12-1-2017
Location: Ciudad de Buenos Aires, Argentina
Member Is Offline


[*] posted on 11-3-2019 at 01:18 PM


I tryed it. It looks very good. The map burned from the right side.
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 22-3-2019 at 03:29 PM


A few problems..

http://js.mikedx.co.uk/LOTR.html

But I'm working on it
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]