Search found 151 matches

by Xero
Sat Dec 25, 2021 3:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Barcode Generation?
Replies: 20
Views: 8633

Re: Barcode Generation?

Hey cmhjon,
I have just updated a previous post to include a revised file that now works. I have generated an online barcode and verified that the output I am getting matches. Also scanned it with an online reader for a correct scan.
XdM
by Xero
Fri Dec 24, 2021 11:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Barcode Generation?
Replies: 20
Views: 8633

Re: Barcode Generation?

I did a quick check and it looks like at least my checksum calc is incorrect. It should be reading the character number (line in table) not the number itself.... As long as it reads the right code, I guess it's a win. I am just using random tables off the internet and am not an expert. I will look t...
by Xero
Fri Dec 24, 2021 2:16 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Barcode Generation?
Replies: 20
Views: 8633

Re: Barcode Generation?

EDITED: I had a look into barcode generation and thought it might be a fun little project. Only took a day, but managed to get proof of concept. Managed to get a barcode generated, and scanned online for a correct reading. Startcode, code, checksum and Endcode. My previous file was using incorrect c...
by Xero
Wed Dec 22, 2021 10:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Barcode Generation?
Replies: 20
Views: 8633

Re: Barcode Generation?

I use that website too... Type in "1" and get a code, then type in "12" and get a code, and you will notice that the length of the code is the same, but the centre changes... so there is "padding". In the case of a 128, there is a start code that tells the reader what character set to use (CODE A, B...
by Xero
Tue Dec 21, 2021 5:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Barcode Generation?
Replies: 20
Views: 8633

Re: Barcode Generation?

There are online barcode and QR code generators that are pretty simple to use. Without doubt, someone with some LC nous could run something that could go to the site, enter the details and kick it back to LC. Just search Free Online Barcode Generator to see what's out there. Otherwise, I reckon with...
by Xero
Wed Dec 15, 2021 12:25 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Solved: Rotate Scaled Img
Replies: 9
Views: 3961

Re: Rotate Scaled Img

OK... Thanks to the brainstrust, we have an answer on this one. For whatever reason, when you scale an image and then rotate it, or rotate an image and scale it, there is a degree of distortion that occurs unless some specific steps are taken in the operation. As long-winded as these are, they work ...
by Xero
Mon Dec 13, 2021 4:14 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Display a video through a gif or png file ?
Replies: 7
Views: 2780

Re: Display a video through a gif or png file ?

Gee! I really do hope you've cracked this! I have been trying to work out how to get something to sit on top of a video for a while. If it's a group situation, I'd be interested to know! Are you able to post a stack, even if the media isn't included (I can change code to reference other things on my...
by Xero
Sun Nov 28, 2021 2:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Solved: Rotate Scaled Img
Replies: 9
Views: 3961

Re: Rotate Scaled Img

Richmond, when I apply your code with the only tweak being scale = 1.001 (so I don't get big changes in scale that don't allow me to see distortion, I get this: Rotation 0 Rot0.jpg and Rotation 90 Rot90.jpg It seems like the bounding box (not a square, a rectangle so the height is shorter than the w...
by Xero
Sun Nov 28, 2021 12:33 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Solved: Rotate Scaled Img
Replies: 9
Views: 3961

Re: Rotate Scaled Img

Thanks Richmond, but I am still getting issues. It looks like in your example that the width and height are changing as you rotate. The rotated image looks shorter than the original... When I use the same code with a scale factor of 1.01 (so it doesn't keep scaling wildly and you can't see the effec...
by Xero
Sun Nov 28, 2021 3:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Solved: Rotate Scaled Img
Replies: 9
Views: 3961

Solved: Rotate Scaled Img

Hi all, I feel like I am missing something small here but can't seem to search the right terms. I have a jpeg image that I am reducing the width and height of (i.e. scaling" it) then I am rotating it. Scaling is a function of the app that I am making, so I can't just import a smaller image. I need t...
by Xero
Sun Nov 14, 2021 1:24 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Inverse Kinematics
Replies: 16
Views: 5767

Re: Inverse Kinematics

Thanks Bernd, spot on. Glad to hear that the problem is in Livecode and not somewhere between the computer and my chair. It's working well, but I am now just encountering a little accumulative rounding issue. I will just write a couple of lines to keep track of actual figures and round them instead ...
by Xero
Sat Nov 13, 2021 1:53 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Inverse Kinematics
Replies: 16
Views: 5767

Re: Inverse Kinematics

Alright... I have adapted the code to work for the spinal model. I have managed to get the images to all rotate as necessary. I can set a rotation point and use it for multiple vertebrae, all works fine. I am using line graphics to keep track of the rotation points though. So each vertebra has a lin...
by Xero
Tue Nov 02, 2021 3:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Inverse Kinematics
Replies: 16
Views: 5767

Re: Inverse Kinematics

OK... previous ideas didn't come to fruition, but Bernd has hit the nail on the head. That's the maths that I needed. I now just need to adapt to suit. I have done a trial stack with rectangular images, and managed to get the pieces to rotate around a selected point so I can move upper without lower...
by Xero
Tue Nov 02, 2021 2:41 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Inverse Kinematics
Replies: 16
Views: 5767

Re: Inverse Kinematics

Thanks guys, I just got back and will have a look at them. If the "rotate about x,y" thing works, I should be able to get it all functional. As for the action... it's a rotation that I want. Basically, the vertebrae rotate around a central point that is in the middle of the cartilage discs between t...
by Xero
Mon Nov 01, 2021 3:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Inverse Kinematics
Replies: 16
Views: 5767

Inverse Kinematics

Hi Brainstrust, I am working on a little pet project that will be using inverse kinematics to simulate a spine's movement. Think of what I am doing like a stack of coins. If I pick up the bottom coin, all of the coins above it move as well. If you pick up the second to bottom coin, the coins above i...

Go to advanced search