Re: [OT] Any way to do simple texture maps?

2015-06-19 Thread Alejandro Tejada
Hi Geoff,

You want to use a LiveCode implementation of
Perlin Noise. Look at these two JavaScript examples:

http://www.sjeiti.com/perlin-noise-versus-simplex-noise-in-javascript-final-comparison/

Who, in this mail list, could help to translate
Javascript code to LiveCode scripts?

Al

On Wed Jun 17 09:26:11 CEST 2015
Geoff Canyon wrote:
> Any way to do simple texture maps?
> I just want to paint a sphere.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Displaying a jpg photo larger than my liveCode window ?

2015-06-19 Thread Brahmanathaswami

Aloha from beautiful Kauai

Why can't  "grab" server you needs?

# put into the script of the image itself

# I typically will store this as a custom property and then add it to 
new images on import or one open card



# main dish:
on mouseDown
  grab Me
 set the cursor to hand
end mouseDown

# add toppings as desired

  on mousewithin
   set the tooltip of me to "click, drag to view"
  end mousewithin




Swasti Astu, Be Well!
Brahmanathaswami

Kauai's Hindu Monastery
www.HimalayanAcademy.com



Francis Nugent Dixon wrote:

Hi from Beautiful Brittany,

I have a tiny problem (otherwise I wouldn’t ask for help) !
I have a stack window of a reasonable size, but I want to
display a jpg (or other) file in this window, but it is much
larger. I want to be able to “click and slide” on my displayed
photo, in much the same way as you do with a Google map,
so I can see any part of the large photo within my LiveCode
window..

And I don’t even know where to start ….

Any help gratefully received.

-Francis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Equilateral Triangles

2015-06-19 Thread Mark Wieder
Richard Gaskin  writes:

> 
> Mike Bonner wrote:
> 
>  > I have a feature request.. Add the points property to regular
>  > polygons. They don't need to be settable, but then you can
>  > easily find the centroid of say.. a triangle
> 
> Apparently Mark Wieder was using Jacque's time machine last year, read 
> your request this morning, and added that to the v6.7 engine - from the 
> Dictionary:

Yeah, the only "problem" I've found is that if you rotate a graphic,
for example a rectangle, the engine converts it into a polygon.
I'm not overly concerned because I consider all those as variants of
polygons anyway, but the engine does this behind my back and I never
found a good way around it. Apparently it hasn't bothered anybody else
to the point of complaining. Yet.

-- 
 Mark Wieder
 ahsoftw...@gmail.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Do new Livecode 8 widgets work on mobile?

2015-06-19 Thread David Bovill
Isn't it crazy that given how easy it is to edit and change / fix LiveCode
IDE stacks we are still waiting for the mothership to fix simple errors
like this instead of patching them and submitting fixes ourselves?

The code is:

on mouseUp
>answer "What version of XCode do you have installed?" with "4.2 or
> earlier" and "4.3 or later"
>if it contains 4.3 then
>   answer file "Select your XCode app bundle" with filter "APPL"
>   if it is not empty then
>  put "/Contents/Developer" after it
>   end if
>else
>   answer folder "Please choose the developer root for your iOS 5.0 and
> above SDK"
>end if
>if it is not empty then
>   if *revIDEDeployIOSIsValidSDK*(it) then
>
> * setIOSSdk it*
>>
>   else
>  answer error "The chosen folder is not a valid iOS SDK."
>   end if
>end if
> end mouseUp
>

I can't find exactly where the "*setIOSSdk" *handler is. I guess the error
is in the revIDEDeployIOSIsValidSDK() function - which I can;t find either.
Any tips with regard to how to debug IDE errors - given the debugger seems
to get a bit flaky when debugging the IDE - checkpoints are not recognised?

On 19 June 2015 at 23:41, Dave Kilroy  wrote:

> Sorry I must have given you bad advice - I just installed Xcode 6.3.1 and
> it
> didn't work with LC 8 dp1 or dp2 - maybe when LC 8 came out in early April
> I
> was using Xcode 6.3.0 - I was also probably running an earlier version of
> iOS...
>
> I think unless we can recreate the same conditions in our development AND
> test machines to those we had in early April that we are stuffed until they
> bring out dp3
>
>
>
> -
> "The difference between genius and stupidity is; genius has its limits." -
> Albert Einstein
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693217.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: local variable being reset from outside of script

2015-06-19 Thread Mark Wieder
J. Landman Gay  writes:

> Could some other control using the same behavior be interfering or 
> acting as the target? Each control keeps its own set of variable values 
> and if the focus shifts and triggers a second instance you may be seeing 
> a report from another object. Just a wild guess. You could try removing 
> the behavior from all but a single test control and see if it still happens.

Could also be launching a palette stack from a behavior object.
It's possible that on return it launches a new behavior instance.
Dunno. It's a bug if so.

> you're pretty^H^H^HVERY good at  producing the unexpected.

-- 
 Mark Wieder
 ahsoftw...@gmail.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Do new Livecode 8 widgets work on mobile?

2015-06-19 Thread Dave Kilroy
Sorry I must have given you bad advice - I just installed Xcode 6.3.1 and it
didn't work with LC 8 dp1 or dp2 - maybe when LC 8 came out in early April I
was using Xcode 6.3.0 - I was also probably running an earlier version of
iOS...

I think unless we can recreate the same conditions in our development AND
test machines to those we had in early April that we are stuffed until they
bring out dp3



-
"The difference between genius and stupidity is; genius has its limits." - 
Albert Einstein
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693217.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: local variable being reset from outside of script

2015-06-19 Thread J. Landman Gay

On 6/19/2015 12:13 PM, Dr. Hawkins wrote:

>Somehow, between the two checks, pChFld changes from holding an id to
>empty.


I managed a partial workaround, but there are more disappearing local
variables.


Could some other control using the same behavior be interfering or 
acting as the target? Each control keeps its own set of variable values 
and if the focus shifts and triggers a second instance you may be seeing 
a report from another object. Just a wild guess. You could try removing 
the behavior from all but a single test control and see if it still happens.


I've never seen a script lose its local values that way except 
occasionally after a script is compiled, but you're pretty good at 
producing the unexpected.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Displaying a jpg photo larger than my liveCode window ?

2015-06-19 Thread Mike Bonner
Heres an example stack with the working script.  Done in 7.0.5.
https://dl.dropboxusercontent.com/u/11957935/picdrag.livecode

On Fri, Jun 19, 2015 at 7:38 AM, Mike Bonner  wrote:

> Put the image into a group, size and place the group, then set the lockloc
> to true.
>
> I was going to use mouseMove for this, but I couldn't get it to behave as
> I liked, and its too early to figure out why, so I used a send loop
> instead.
>
> Add this code to your group:
>
> local sMouseLoc
> on mouseDown
>put the mouseloc into sMouseLoc -- set the start mouse position
>setScroll -- start the loop
> end mouseDown
>
> on setScroll
>if the mouse is down then -- only set the scroll while the mouse is down
>   if item 1 of sMouseLoc > item 1 of the mouseloc then --this if block
> sets the hscroll
>  set the hscroll of me to the hscroll of me - (item 1 of the
> mouseloc - item 1 of sMouseLoc)
>   else
>  set the hscroll of me to the hscroll of me + (item 1 of sMouseLoc
> - item 1 of the mouseloc)
>
>   end if
>
>   if item 2 of sMouseLoc > item 2 of the mouseloc then -- this if
> block sets the vscroll
>  set the vscroll of me to the vscroll of me - (item 2 of the
> mouseloc - item 2 of sMouseLoc)
>   else
>  set the vscroll of me to the vscroll of me + (item 2 of sMouseLoc
> - item 2 of the mouseloc)
>
>   end if
>   put the mouseloc into sMouseLoc
>   send setScroll to me in 50 millisec
>else
>   put empty into sMouseLoc
>end if
> end setScroll
>
>
> Theres no real need to check scroll bounds, the engine handles things just
> fine.
>
> I'm sure this could be greatly improved, but it should give you a general
> idea.
>
> On Fri, Jun 19, 2015 at 6:34 AM, Francis Nugent Dixon 
> wrote:
>
>> Hi from Beautiful Brittany,
>>
>> I have a tiny problem (otherwise I wouldn’t ask for help) !
>> I have a stack window of a reasonable size, but I want to
>> display a jpg (or other) file in this window, but it is much
>> larger. I want to be able to “click and slide” on my displayed
>> photo, in much the same way as you do with a Google map,
>> so I can see any part of the large photo within my LiveCode
>> window..
>>
>> And I don’t even know where to start ….
>>
>> Any help gratefully received.
>>
>> -Francis
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Do new Livecode 8 widgets work on mobile?

2015-06-19 Thread David Bovill
No joy. Livecode 8.0 dp1 and Xcode 6.3.1 don't seem to play either?

On 19 June 2015 at 13:35, David Bovill  wrote:

> Thanks - Dave. I'm downloading xcode 6.3.1 now from
> https://developer.apple.com/downloads/
>
> On 19 June 2015 at 11:52, Dave Kilroy  wrote:
>
>> Back when 8 dp1 came out (and I had Xcode 6.3.1) I did a quick test and
>> got
>> widgets working nicely on iOS with no extra work involved - but at the
>> moment I'm also grounded with LC 8 for iOS and Android (am expecting a dp3
>> out soon...)
>>
>> Dave
>>
>>
>>
>> -
>> "The difference between genius and stupidity is; genius has its limits."
>> - Albert Einstein
>> --
>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693206.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: local variable being reset from outside of script

2015-06-19 Thread Dr. Hawkins
On Fri, Jun 19, 2015 at 9:02 AM, Dr. Hawkins  wrote:

> Somehow, between the two checks, pChFld changes from holding an id to
> empty.


I managed a partial workaround, but there are more disappearing local
variables.

The partial workaround is to


But now it's getting worse:

ck is a checkpoint routine that writes its argument to the message box and
a log:


*on* ck stuff

   *--   answer stuff*

   *--   breakpoint*

   *put* stuff

   *put* stuff & cr after fld "log" of stack "ckwatch"

*end* ck

Now I"m seeing,


   ck "pChFld test:" & cr & the text of pChFld

   *set* the hilitedLine of pChFld to 1


pChFld has lost its value by the second line of this snippet!



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[OT] Bought my book? Please confirm your address!

2015-06-19 Thread Mark Schonewille

Hi,

This is a message for everyone who has bought or might be interested in 
purchasing the book Programming Livecode for the Real Beginner.


We have had many orders lately and we work hard to ship the books as 
quickly as possible. Unfortunately, sometimes a shipment gets delayed, 
because we don't have a confirmation of the postal mail address.


Everyone who buys Programming LiveCode for the Real Beginner receives an 
e-mail before we ship the book. You need to reply with either a simple 
note to confirm the address, or with an updated address.


In our current batch, there are still 6 people who haven't replied. When 
you receive the request for confirmation, please reply as soon as possible.


If you have bought the book but haven't received a request to confirm 
your address, please contact us. If you try to contact us and still 
don't get any messages, you may want to try to send a message from a 
different e-mail address (with different IP and domain name).


For more information about the book, go to http://tinyurl.com/n9ogfrs

The order page is at http://tinyurl.com/nd5aktq

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


local variable being reset from outside of script

2015-06-19 Thread Dr. Hawkins
In the script of a behavior button for a field, I have a block of

*if* pChFld is empty *then*

 *breakpoint*

  *end* *if*

  *palette* chStk

  *if* pChFld is empty *then*

 *breakpoint*

  *end* *if*

where pChFld is declared local outside of and before any handler.  This is
also the only script anywhere with a pChFld.  pChFld contains an id for a
field in chStk, and strict compilation is on

Supposedly, pChFld will be persistent under such circumstances.

Somehow, between the two checks, pChFld changes from holding an id to empty.

I have single stepped through the palette statement; there is nothing there.

I have tried changing pChFld to a global; no difference.

I've wrapped the palette statement with a lock messages/unlock messages, no
effect.

If I single-step through in the IDE, though, it all works, and pChFld .
For that matter, if I put an evil red dot on the first if in this block,
and then let the debugger run from there without single-stepping, it works.

I'm seeing this in 7.0.5 & 7.0.6-rc1 on yosemite

 Have I hit an ugly bug, or am I missing something?

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


OT: Free 3D Rendered Art Made Easy (an answer for RE: [OT] Re: Any way to do simple texture maps?)

2015-06-19 Thread Lynn Fredricks

> something like
> this (on the right):
> 
> https://upload.wikimedia.org/wikipedia/commons/8/84/Phong-shad
> ing-sample.jpg
> 
> At best I'm looking for something like this:
> 
> http://i.ytimg.com/vi/Nn8G0ifQPDE/maxresdefault.jpg

It is really easy just to make a sphere in any 3D package (like Blender) and
then render it.

But Id like to suggest something particularly cool.

Make a sphere in Blender, select it, then Export it as an OBJ file.

Then import it to OneRender.

OneRender is a scene layout AND cloud rendering platform. It is in beta, and
the beta is free. It has some interesting applications both in the
commercial and academic markets.

The beta access usually requires a PRIVATE INVITE CODE, but lucky for you, I
have one that you (or anyone on this list) can use:

Sign up on this page:

http://www.onerender.com/signup_mirye/

With THIS INVITE CODE:

MESHBOX0617

There is a 3 minute video on the sign up page that shows how it works. A
sphere is a really simple thing. Just import / upload your sphere and apply
a texture to it.

You might also want to get on the forum there as ask if anyone has planetary
textures. They are running a Star Wars art contest now so I believe somebody
should some planetary textures.

Something to have fun with this weekend, too ;-)


Best regards,

Lynn Fredricks
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Displaying a jpg photo larger than my liveCode window ?

2015-06-19 Thread Mike Bonner
Put the image into a group, size and place the group, then set the lockloc
to true.

I was going to use mouseMove for this, but I couldn't get it to behave as I
liked, and its too early to figure out why, so I used a send loop instead.

Add this code to your group:

local sMouseLoc
on mouseDown
   put the mouseloc into sMouseLoc -- set the start mouse position
   setScroll -- start the loop
end mouseDown

on setScroll
   if the mouse is down then -- only set the scroll while the mouse is down
  if item 1 of sMouseLoc > item 1 of the mouseloc then --this if block
sets the hscroll
 set the hscroll of me to the hscroll of me - (item 1 of the
mouseloc - item 1 of sMouseLoc)
  else
 set the hscroll of me to the hscroll of me + (item 1 of sMouseLoc
- item 1 of the mouseloc)

  end if

  if item 2 of sMouseLoc > item 2 of the mouseloc then -- this if block
sets the vscroll
 set the vscroll of me to the vscroll of me - (item 2 of the
mouseloc - item 2 of sMouseLoc)
  else
 set the vscroll of me to the vscroll of me + (item 2 of sMouseLoc
- item 2 of the mouseloc)

  end if
  put the mouseloc into sMouseLoc
  send setScroll to me in 50 millisec
   else
  put empty into sMouseLoc
   end if
end setScroll


Theres no real need to check scroll bounds, the engine handles things just
fine.

I'm sure this could be greatly improved, but it should give you a general
idea.

On Fri, Jun 19, 2015 at 6:34 AM, Francis Nugent Dixon 
wrote:

> Hi from Beautiful Brittany,
>
> I have a tiny problem (otherwise I wouldn’t ask for help) !
> I have a stack window of a reasonable size, but I want to
> display a jpg (or other) file in this window, but it is much
> larger. I want to be able to “click and slide” on my displayed
> photo, in much the same way as you do with a Google map,
> so I can see any part of the large photo within my LiveCode
> window..
>
> And I don’t even know where to start ….
>
> Any help gratefully received.
>
> -Francis
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Displaying a jpg photo larger than my liveCode window ?

2015-06-19 Thread Francis Nugent Dixon
Hi from Beautiful Brittany,

I have a tiny problem (otherwise I wouldn’t ask for help) !
I have a stack window of a reasonable size, but I want to
display a jpg (or other) file in this window, but it is much
larger. I want to be able to “click and slide” on my displayed
photo, in much the same way as you do with a Google map,
so I can see any part of the large photo within my LiveCode
window..

And I don’t even know where to start ….

Any help gratefully received.

-Francis
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Do new Livecode 8 widgets work on mobile?

2015-06-19 Thread David Bovill
Thanks - Dave. I'm downloading xcode 6.3.1 now from
https://developer.apple.com/downloads/

On 19 June 2015 at 11:52, Dave Kilroy  wrote:

> Back when 8 dp1 came out (and I had Xcode 6.3.1) I did a quick test and got
> widgets working nicely on iOS with no extra work involved - but at the
> moment I'm also grounded with LC 8 for iOS and Android (am expecting a dp3
> out soon...)
>
> Dave
>
>
>
> -
> "The difference between genius and stupidity is; genius has its limits." -
> Albert Einstein
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693206.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Do new Livecode 8 widgets work on mobile?

2015-06-19 Thread Dave Kilroy
Back when 8 dp1 came out (and I had Xcode 6.3.1) I did a quick test and got
widgets working nicely on iOS with no extra work involved - but at the
moment I'm also grounded with LC 8 for iOS and Android (am expecting a dp3
out soon...)

Dave



-
"The difference between genius and stupidity is; genius has its limits." - 
Albert Einstein
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Do-new-Livecode-8-widgets-work-on-mobile-tp4693205p4693206.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Do new Livecode 8 widgets work on mobile?

2015-06-19 Thread David Bovill
Has anyone tested these on Android and iOS. I'm still not able to test this
end - so I'm wanderign if anyone else has managed to get LiveCode 8 widgets
on iOS - and if so how :)


On 18 June 2015 at 19:17, David Bovill  wrote:

> Is there a way to add this manually? I'd like to do a test of the new
> widgets on iOS - currently I can't get version 8+ of LiveCode to play with
> XCode - I'm thinking I can just set a custom property or something by hand?
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode