The Daily Click ::. Forums ::. Klik Coding Help ::. Lens object
 

Post Reply  Post Oekaki 
 

Posted By Message

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
5th September, 2010 at 19:34:48 -

Oh God i feel so stoopid for asking, but i just can't get it to work at all - especially bad since years and years ago i used to mess about with this object and had no issues at all!

How the hell do i make a magnifying glass effect using the Lens object? I've tried everything and am now 25 pages into the help forums on here but with no luck....

...help me Obi-Wan Kenobi!!!

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
5th September, 2010 at 19:40:41 -

Hmmm, turns out i was using it right - i tried it using a non-HWA version of MMF2 and it worked fine, it just doesn't work with HWA!

Any idea how i can get it to work? Are there certain builds of HWA that it does/doesn't work with?

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
5th September, 2010 at 20:39:10 -

Care to upload a file that isn't working for you? I've just tried it with and without HWA on, and it appears to work fine.

It could just be that your machine isn't good enough (or your DirectX version isn't good enough).

Edited by Flava

 
This is a signature. Have this one on me.

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
5th September, 2010 at 21:14:35 -

No worries Flava - i just fixed it! Thanks tons for offering your help anyways!

This issue has cost me about 3 hours of my life!!

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
6th September, 2010 at 02:28:57 -

If you're talking about the lens extension, do you think you could share how you fixed it with HWA? I myself have the same issue, but get around it by using the lens pixel shader. Still, I'd like to know what I'm doing wrong.
Thanks in advance.

 
http://www.facebook.com/truediamondgame

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
6th September, 2010 at 04:51:02 -

Oh yeah, no problem - i simply changed the overall Display Mode from my default Direct3D 9 to DirectX in the overall game's Properties>Runtime options>Display options.

EDIT: Just checked this on a game that's more code-heavy and the loss in frame rate was noticably not-good

Edited by Marko

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Xgoff



Registered
  22/02/2009
Points
  135
6th September, 2010 at 06:55:51 -

the lens object's effect is implemented in software so you shouldn't expect it to be fast... which is why you should be using the shader if you're running HWA

 
Image

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
6th September, 2010 at 10:39:36 -


Originally Posted by Marko
Oh yeah, no problem - i simply changed the overall Display Mode from my default Direct3D 9 to DirectX in the overall game's Properties>Runtime options>Display options.

EDIT: Just checked this on a game that's more code-heavy and the loss in frame rate was noticably not-good



Lol, that's what I was afraid you'd say was your solution. All you did was shut off the HWA part of HWA. You're running in software rendering again, which is why it works.

 
http://www.facebook.com/truediamondgame

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
6th September, 2010 at 16:18:47 -

Booooo - that explains that then!

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
6th September, 2010 at 16:19:42 -


Originally Posted by Xgoff
the lens object's effect is implemented in software so you shouldn't expect it to be fast... which is why you should be using the shader if you're running HWA


What's "the shader"?

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
6th September, 2010 at 16:20:57 -

Who needs the lens object? Lens shader ftw!

EDIT: This: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=171354#Post171354 Once you put it in the folder it should appear in the effects section of an active object. Just make a white-to-black radial gradient active and set the effect to the lens, and voila! Works wonders for animated explosion distortions.

Just for funsies, try this one on for size: http://jollycrouton.com/Uploads/images/radiant.png (Make sure to set the Blend Coefficient setting to 1 to make the transition smooth)

http://jollycrouton.com/Uploads/lens.zip Here's a small example.

Edited by OMC

 

  		
  		

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
6th September, 2010 at 19:09:34 -

You'll find the lens shader to be far more efficient since you can turn a whole active object or even a whole layer into one big lens. This is absolutely perfect for rippling water or say cloaking units or what have you. It's incredibly useful and far more efficient then a static lens extension. Especially since, to get the effect of the lens extension, simply make an active object with a radial gradient.

 
http://www.facebook.com/truediamondgame

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
6th September, 2010 at 20:18:42 -

...Checking these out now, cheers guys!

EDIT: This is exactly what i need! Cheers guys, i appreciate this big time!

Edited by Marko

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
6th September, 2010 at 22:11:29 -

Guys, if you've never used this it is a million times better than the Lens object

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com
   

Post Reply



 



Advertisement

Worth A Click